Convert to coordinates
Changed onThis function converts a what3words address to a latitude and longitude. It also returns country, the bounds of the grid square, a nearest place (such as a local town) and a link to our map site.
Request
- Base URLhttps://api.what3words.com/v3
- Auth
- API key in query parameter key
- or API key in header X-Api-Key
Query parameters
A valid API key. Provide it as query parameter key; X-Api-Key header is also supported.
A what3words address. Input parsing is case-insensitive, accepts an optional leading ///, and accepts supported dot-like delimiters (. 。 。 ・ ・ ︒ ។ ։ ။ ۔ ። ।).
Return data format type; can be either json (the default) or geojson
Response
Successful conversion to coordinates
Example response
{
"country": "GB",
"square": {
"southwest": {
"lat": 51.520847,
"lng": -0.195521
},
"northeast": {
"lat": 51.520847,
"lng": -0.195521
}
},
"nearestPlace": "Bayswater, London",
"coordinates": {
"lat": 51.520847,
"lng": -0.195521
},
"words": "filled.count.soap",
"language": "en",
"locale": "mn_la",
"map": "https://w3w.co/filled.count.soap"
}Changes
- warning
deleted the
queryrequest parameterlocale - warning
added the new
BadInputenum value to the/response property for the response status - warning
added the new
BadInputenum value to the/response property for the response status - warning
added the new
BadNFocusResultsenum value to the/response property for the response status - warning
added the new
BadNFocusResultsenum value to the/response property for the response status - warning
added the new
BadNResultsenum value to the/response property for the response status - warning
added the new
BadNResultsenum value to the/response property for the response status - warning
added the new
DuplicateParameterenum value to the/response property for the response status - warning
added the new
DuplicateParameterenum value to the/response property for the response status - warning
added the new
MissingKeyenum value to the/response property for the response status - warning
added the new
MissingKeyenum value to the/response property for the response status - info
the endpoint scheme security
ApiKeyHeaderwas added to the API - info
the
queryrequest parameterkeybecame optional - info
removed the
BadLocaleenum value from the/response property for the response status - info
removed the
BadLocaleenum value from the/response property for the response status
- warning