Convert to what3words address
Changed onThis function will convert a latitude and longitude to a what3words address, in the language of your choice. It also returns country, the bounds of the grid square, a nearby 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.
Coordinates as a comma separated string of latitude and longitude
A supported what3words language code from /available-languages. You can pass base language codes (for example fr) or script-specific codes where available (for example mn_la, zh_tr, oo_la). Defaults to en (English) if not specified.
Return data format type; can be either json (the default) or geojson
Optional locale/script-specific code. Can be passed on its own. If provided with language, both values must be identical strings (for example language=mn_la&locale=mn_la).
Response
Successful conversion to what3words address
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
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