Docs / Errors
INVALID_COORDINATES
400Invalid coordinatesWhy it happens
lat is not between -90 and 90, or lon not between -180 and 180, in decimal degrees. A swapped pair is the usual cause.
What to do
- Send
latfirst andlonsecond, both in decimal degrees (51.5173, not51°31'). - Check the order your map or geolocation library gives: some give longitude first.
Example response
HTTP/1.1 400
{
"type": "https://hub.masjidbox.com/docs/errors/INVALID_COORDINATES",
"title": "Invalid coordinates",
"status": 400,
"detail": "`lat` is not within ±90 or `lon` not within ±180, in decimal degrees.",
"instance": "/v1/masjids/msj_abc123defg",
"code": "INVALID_COORDINATES",
"requestId": "req_8f14e45fceea167a5a36dedd4bea2543",
"requestLogUrl": "https://hub.masjidbox.com/console/logs/req_8f14e45fceea167a5a36dedd4bea2543"
}