olamap_show_map_html_for_route
Generates HTML for an interactive map showing a route polyline with origin, destination, and optional waypoints. Use it to embed route visualization in web pages or apps.
Instructions
Returns HTML for an interactive map with a polyline
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": {
"route_polyline": "<route_polyline>",
"origin": "<origin>",
"destination": "<destination>"
},
"name": "olamap_show_map_html_for_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zoom | No | Map zoom level | |
| width | No | Map width in pixels | |
| height | No | Map height in pixels | |
| origin | Yes | Starting point coordinates "lat,lng" | |
| waypoints | No | Optional waypoints coordinates | |
| destination | Yes | Ending point coordinates "lat,lng" | |
| route_polyline | Yes | Encoded polyline string from directions API |