Route geometry
route_shapeRetrieve the geographic path of an OASA route, returning a compact summary by default or simplified coordinates/GeoJSON when needed.
Instructions
The geographic path of one OASA route. Defaults to a summary (length, bounding box, endpoints) because raw shapes run to hundreds of points; request "coords" or "geojson" only when the geometry itself is needed, and it will be simplified to the requested point budget with endpoints preserved. Covers Attica (greater Athens) only: OASA buses, trolleys, metro and tram.
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_code": "<route_code>"
},
"name": "route_shape"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | summary = statistics only; coords = [lat, lon] pairs; geojson = LineString. | summary |
| max_points | No | Point budget when returning geometry. | |
| route_code | Yes | Route code from line_routes. |