0
votes

Can anyone possible tell me what is wrong with this coordinate: -21.186924,-41.224376 google maps says it's ok!

Azure API Returns Bad Request!

https://atlas.microsoft.com/route/directions/json?api-version=1&subscription-key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&query=-21.156265,-41.2771530:-21.186924,-41.224376&routeRepresentation=polyline&travelMode=car&&view=Auto&computeBestOrder=true

Message:

{
  "error": {
    "code": "400 BadRequest",
    "message": "Bad request: one or more parameters were incorrectly specified or are mutually exclusive."
  }
}
1

1 Answers

2
votes

Your coordinates are in the Atlantic ocean. Note that Azure Maps aligns with the GIS standard of "longitude, latitude" which aligns with "x, y", while Google Maps uses "latitude, longitude"