HERE static map image (markers + route line)
here_map_imageRender static HERE maps centered on coordinates with optional markers and route lines, then save as PNG/JPEG and return the local file path for viewing or sharing.
Instructions
Render a static HERE map (Map Image API v3) centred on a point, with optional numbered/pinned markers and an optional route line, then save it as a PNG/JPEG and return the local file path. UK default style "explore.day". width/height default 800×600. zoom default 13 (city level); 9-10 gives a regional overview for a long HGV route. Route line: pass routePolyline (the encoded HERE Flexible Polyline returned by here_route includePolyline) — it is sent as HERE's compact overlay, so long routes do not overflow the URL — OR routePoints as [[lat,lng],…] (downsampled to 200 points). Markers are formatted as pinned labels. The saved file can be opened with an image viewer / read_image tool. The returned URL is credential-free; the HERE API key is never exposed (the image is fetched server-side and written to HERE_MAP_OUTPUT_DIR). For a simple “where is this?” image omit markers; for a delivery map pass markers for each stop.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "here_map_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Map label language (ISO 639-1 two letters only, default "en" derived from en-GB). | |
| zoom | No | Zoom level 0-22 (default 13). Use 9-10 for a whole-UK/HGV route overview. | |
| hiRes | No | Render at 2× scale for high-DPI displays (default false). | |
| style | No | HERE map style (default explore.day; try "explore.night" or "satellite.day"). | explore.day |
| width | No | Image width in pixels (64-2048, default 800). | |
| format | No | Image format (default png8; use png24 for gradients or jpeg for photos). | png8 |
| height | No | Image height in pixels (64-2048, default 600). | |
| markers | No | Up to 20 markers to draw on the map. | |
| filename | No | Optional output filename (extension corrected automatically). | |
| latitude | Yes | Map centre latitude, e.g. 53.4808. | |
| longitude | Yes | Map centre longitude, e.g. -2.2426. | |
| saveToFile | No | Download and save the image locally (default true). Set false to only get the keyless URL. | |
| routePoints | No | Route line as explicit [[lat,lng],…] points (alternative to routePolyline). | |
| routePolyline | No | Encoded HERE Flexible Polyline to draw as a route line (e.g. from here_route includePolyline=true). Sent as a compact overlay, so long routes are safe. |