Detailed A-B Routing
Get travel time and route details
curl --compressed -X POST \
'https://api.targomo.com/westcentraleurope/v1/route?key=__targomo_key_here__' \
-H 'Content-Type: application/json' \
-d '{
"edgeWeight": "time",
"maxEdgeWeight": "3600",
"pathSerializer": "geojson",
"sources": [
{
"id": "Source1",
"lat": 52.5494892,
"lng": 13.42883045,
"tm": {
"bike": {}
}
}
],
"targets": [
{
"id": "Home1",
"lat": 52.5322,
"lng": 13.5045
}
],
"polygon": {
srid: 4326
}
}'
Copied to clipboard