Malformed coordinate at index... Error message

I’m trying out TomTom rest API, when sending this request to calculateRoute service

{
    "supportingPoints":[
      {
        "latitude": -99.9040700, "longitude": 16.8569200
      },
      {
        "latitude": -99.8349700, "longitude": 16.8956100
      }
    ]
}

I get

{
    "formatVersion": "0.0.12",
    "error": {
        "description": "Malformed coordinate at index [0]: [-99.9040700,16.8569200]"
    }
}

based on the documentation I see that the latitude should be in the -90,90 range, which explains the error. This lat/long corresponds to Acapulco - Mexico. I should conclude then that this area is not covered by this service? Thanks.

Aren’t you mixing lat with lon?

1 Like