Grid section
Changed onReturns a section of the 3m x 3m what3words grid for a bounding box. The bounding box is specified by lat,lng,lat,lng as south,west,north,east. You can request the grid in GeoJSON format, making it very simple to display on a map.
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.
Bounding box, as a lat,lng,lat,lng, for which the grid should be returned. The requested box must not exceed 4km from corner to corner, or a BadBoundingBoxTooBig error will be returned. Latitudes must be >= -90 and <= 90, but longitudes are allowed to wrap around 180. To specify a bounding-box that crosses the anti-meridian, use longitude greater than 180. e.g.: bounding-box=50.0,179.995,50.01,180.0005
Return data format type; can be either json (the default) or geojson
Response
Successful grid section retrieval
Example response
{
"lines": [
{
"start": {
"lat": 51.520847,
"lng": -0.195521
},
"end": {
"lat": 51.520847,
"lng": -0.195521
}
}
]
}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