Hello,
I’m using the Routing API. For the same data, the “Calculate Route” endpoint works fine, but the “Synchronous Batch” endpoint returns a code 400 : “Invalid request: supportingPoint[0] has invalid ‘longitude’ number format.”
I can’t figure out what’s the problem here, can anyone help ?
Calculate Route :
POST https://api.tomtom.com/routing/1/calculateRoute/52.55096999999999,0.05328:52.6166544396,0.0030264119/json?routeType=shortest&travelMode=truck
{"supportingPoints": [{"latitude": 52.61733, "longitude": 0.0008}]}
Synchronous Batch
POST https://api.tomtom.com/routing/1/batch/json
{"batchItems": [{"query": "/calculateRoute/52.55096999999999,0.05328:52.6166544396,0.0030264119/json?routeType=shortest&travelMode=truck", "post": {"supportingPoints": [{"latitude": 52.61733, "longitude": 0.0008}]}}]}
which returns :
{
"formatVersion": "0.0.1",
"batchItems": [
{
"statusCode": 400,
"response": {
"formatVersion": "0.0.12",
"detailedError": {
"message": "Invalid request: supportingPoint[0] has invalid 'longitude' number format.",
"code": "BAD_INPUT"
}
}
}
],
"summary": {
"successfulRequests": 0,
"totalRequests": 1
}
}