home / skills / dkyazzentwatwa / chatgpt-skills / territory-mapper

territory-mapper skill

/territory-mapper

This skill helps visualize sales territories on interactive maps with customizable boundaries, color coding, and data overlays for better planning.

npx playbooks add skill dkyazzentwatwa/chatgpt-skills --skill territory-mapper

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
1.4 KB
---
name: territory-mapper
description: Use when asked to visualize sales territories, coverage areas, service regions, or geographic boundaries on interactive maps.
---

# Territory Mapper

Visualize sales territories, coverage areas, and service regions on interactive maps with customizable boundaries and styling.

## Purpose

Territory visualization for:
- Sales territory assignment and planning
- Service area coverage mapping
- Market analysis and expansion
- Delivery zone visualization
- Regional performance tracking

## Features

- **Territory Polygons**: Draw custom boundaries
- **Color Coding**: Color by performance, team, status
- **Interactive Maps**: Zoom, pan, tooltips
- **Data Overlay**: Add markers, heatmaps, routes
- **Statistical Layers**: Population, demographics
- **Export**: HTML, PNG, GeoJSON

## Quick Start

```python
from territory_mapper import TerritoryMapper

# Create territory map
mapper = TerritoryMapper()
mapper.add_territory(
    name='West Coast',
    coordinates=[(37.7, -122.4), (34.0, -118.2), ...],
    color='blue',
    data={'sales': 1000000, 'rep': 'Alice'}
)
mapper.save_html('territories.html')
```

## CLI Usage

```bash
# Create map from GeoJSON
python territory_mapper.py --geojson territories.geojson --output map.html

# Color by column
python territory_mapper.py --geojson territories.geojson --color-by sales --output map.html
```

Overview

This skill visualizes sales territories, coverage areas, and service regions on interactive maps with customizable boundaries and styling. It creates polygon territories, overlays markers and heatmaps, and exports results as HTML, PNG, or GeoJSON for sharing and reporting.

How this skill works

You define territories by polygon coordinates or import GeoJSON, then attach metadata (sales, rep, status) and styling (color, opacity). The mapper renders interactive maps with zoom, pan, tooltips, and optional statistical layers like population or demographics. Exports include standalone HTML, static images, and GeoJSON for integration with other tools.

When to use it

  • Assign or visualize sales territories for planning and load balancing
  • Map service coverage, delivery zones, or support regions
  • Color-code regions by performance, rep, or status for reporting
  • Create interactive location-based presentations or dashboards
  • Generate GeoJSON or image exports for GIS or CRM systems

Best practices

  • Use GeoJSON imports for complex boundaries to avoid manual coordinate errors
  • Attach key metrics (sales, calls, capacity) to each territory for instant insights
  • Choose clear color palettes and contrast for accessibility in presentations
  • Combine polygon layers with marker and route overlays for full context
  • Validate exported GeoJSON in a GIS before bulk imports into other systems

Example use cases

  • Visualize west, central, and east sales territories, color-coded by quarterly revenue
  • Create a service-area map for delivery drivers and export PNG for training materials
  • Overlay customer density heatmaps on territories to plan expansion
  • Import corporate GeoJSON to assign reps and produce an interactive HTML for stakeholders
  • Compare territory performance by adding population or demographic layers

FAQ

Can I import GeoJSON files?

Yes. Import GeoJSON to create territories, preserve attributes, and color by any property.

What export formats are available?

You can export interactive HTML, static PNG, and GeoJSON for downstream use.