I’m trying to see how long a certain route will take. An example of this route would be the same as this:
A → B → A
Both in my application, as on the API Explorer, I can’t seem to make this one work.
This is 1 I made for this example:
curl -X 'POST' \
'https://api.tomtom.com/routing/1/calculateRoute/52.50931%2C13.42936%3A52.50931%2C13.42936/json?key=*****' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"supportingPoints": [
{
"latitude": 52.50844,
"longitude": 13.42859
}
]
}'
This one gets the following response:
{
"formatVersion": "0.0.12",
"routes": [
{
"summary": {
"lengthInMeters": 0,
"travelTimeInSeconds": 0,
"trafficDelayInSeconds": 0,
"trafficLengthInMeters": 0,
"departureTime": "2023-06-21T11:08:14+02:00",
"arrivalTime": "2023-06-21T11:08:14+02:00"
},
"legs": [
{
"summary": {
"lengthInMeters": 0,
"travelTimeInSeconds": 0,
"trafficDelayInSeconds": 0,
"trafficLengthInMeters": 0,
"departureTime": "2023-06-21T11:08:14+02:00",
"arrivalTime": "2023-06-21T11:08:14+02:00"
},
"points": [
{
"latitude": 52.5093,
"longitude": 13.42937
},
{
"latitude": 52.5093,
"longitude": 13.42937
}
]
}
],
"sections": [
{
"startPointIndex": 0,
"endPointIndex": 1,
"sectionType": "TRAVEL_MODE",
"travelMode": "car"
}
]
}
]
}
As you might understand, when I put 1 ‘supportingpoint’ in the API, it responds like thiere is none. Is there somebody here to help me out?