Reverse Geocoding
Reverse geocoding is the process of finding addresses near an inputted latitude & longitude coordinate. Naurt provides this functionality, but once again returns GeoJSON parking spot and building entrance data for each address.
Requests
All requests should be sent to Naurt's point of interest (POI) endpoint.
https://api.naurt.net/poi/v3
A POST
request should be sent to the POI endpoint containing a JSON with the latitude & longitude in WGS84 degrees.
{
"latitude": 50.835551,
"longitude": -0.127613
}
Don't forget to include the API key in the Authorization
header.
curl -X POST \
-H 'Content-type: application/json' \
-H 'Authorization: <API-KEY-HERE>' \
-d '{"latitude": 50.835551, "longitude": -0.127613}' \
'https://api.naurt.net/poi/v3'
Responses
As with geocoding, Naurt responses contain two fields: best_match
and additional_matches
. The best match will contain the closest address Naurt has to the provided location. Additional matches, which are not enabled by default, will contain the 20 closest addresses. For each Address, the standard Naurt building entrance and parking zone GeoJSON will be present.
An example response can be seen below both plotted and in GeoJSON form.
curl -X POST \
-H 'Content-type: application/json' \
-H 'Authorization: <API-KEY-HERE>' \
-d '{"latitude": 50.835551, "longitude": -0.127613}' \
'https://api.naurt.net/poi/v3'