neshan_map_view
Generate an interactive map HTML file with markers, routes, and traffic overlay for local viewing.
Instructions
Generate an interactive Neshan map HTML file and save it locally.
Creates a fully interactive map page using the Neshan Maps SDK. Supports markers with popups and route polylines drawn on the map. The map auto-fits to show all markers and routes. Open the returned file_path in any browser to view the map.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoom | No | Initial zoom level (2–21). Auto-calculated when markers/routes are present. | |
| title | No | Page title shown in the header bar. | نقشه نشان |
| routes | No | Route objects to draw. Each needs either 'encoded_polyline' (the overview_polyline field returned by neshan_direction) or a raw 'coordinates' list. | |
| map_key | No | Neshan Web SDK API key (different from service key). Without this the base map tiles won't load, but markers and routes are still drawn. Get one from platform.neshan.org. | |
| markers | No | Marker objects to place on the map. | |
| show_poi | No | Show points of interest labels on the map. | |
| center_lat | No | Fallback center latitude (used when no markers/routes given). | |
| center_lng | No | Fallback center longitude. | |
| show_traffic | No | Overlay live traffic layer on the map. |