territory-mapper
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTerritory Mapper
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
- 区域多边形:绘制自定义边界
- 颜色编码:按业绩、团队、状态配色
- 交互式地图:缩放、平移、提示框
- 数据叠加:添加标记、热力图、路线
- 统计图层:人口、人口统计数据
- 导出功能:HTML、PNG、GeoJSON
Quick Start
快速开始
python
from territory_mapper import TerritoryMapperpython
from territory_mapper import TerritoryMapperCreate 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')
undefinedmapper = 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')
undefinedCLI Usage
CLI 使用方式
bash
undefinedbash
undefinedCreate map from GeoJSON
从GeoJSON创建地图
python territory_mapper.py --geojson territories.geojson --output map.html
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
undefinedpython territory_mapper.py --geojson territories.geojson --color-by sales --output map.html
undefined