ID Lookups
As discussed in the Quickstart, there are plenty of ways to access Naurt data. These examples will guide you through each way you can look up specific IDs with Naurt. Before continuing, make sure you have your free API key from the Naurt Dashboard.
ID Lookup
Section titled “ID Lookup”An ID Lookup is the fastest and most accurate way to use Naurt. Each address in the Naurt database is associated with our own unique ID. While you are not allowed to cache addresses or locations returned by the API, you are permitted to cache Naurt IDs for as long as you like. Therefore, looking up addresses again can be extremely fast the second time.
-
Configure a
POSTrequest to the final-destination endpoint with the following headers.Terminal window https://api.naurt.net/final-destination/v2Authorization: <API-KEY-HERE>Content-Type: application/json -
Configure your JSON payload with an
id{"queries":[{"id": "8bd197aa-7328-3e10-9ea7-7ec139e9fa48"}]}{"request_id": "b3374f69-f97a-471d-a812-72071bbf8aab","responses": [{"additional_matches": [],"best_match": {"address": "Gatwick Aviation Museum, Lowfield Heath Road, Charlwood, Horley, RH6 0BT, United Kingdom","geojson": {"features": [{"geometry": {"coordinates": [-0.215979, 51.15257],"type": "Point"},"properties": { "naurt_type": "basic_geocode" },"type": "Feature"},{"geometry": {"coordinates": [[-0.216050315, 51.152570808]],"type": "MultiPoint"},"properties": {"accuracy": { "quality": "high" },"naurt_type": "naurt_door"},"type": "Feature"},{"geometry": {"coordinates": [[[-0.21573266465373608, 51.15236090841029],[-0.21563349450888, 51.15242003934162],[-0.2160976384129509, 51.1527263288431],[-0.21619682997769277, 51.15266718988707],[-0.21573266465373608, 51.15236090841029]]],"type": "Polygon"},"properties": {"contributors": ["© OpenStreetMap contributors"],"naurt_type": "naurt_building"},"type": "Feature"},{"geometry": {"coordinates": [[[-0.21781341962306508, 51.15254754332662],[-0.2177770330203757, 51.15254714373012],[-0.21777465547299327, 51.15263232197128],[-0.21781104207568264, 51.152632721567045],[-0.21781341962306508, 51.15254754332662]]],"type": "Polygon"},"properties": {"accuracy": { "quality": "high" },"minimum_parking_to_door_distance": 122.998278403148,"naurt_type": "naurt_parking"},"type": "Feature"}],"type": "FeatureCollection"},"id": "8bd197aa-7328-3e10-9ea7-7ec139e9fa48","search_confidence": 1.0},"status": "ok"}],"version": "v2.6.9-hf.1"}
This type of request does not support any other parameters within the query.
Source ID Lookup
Section titled “Source ID Lookup”Naurt uses third party data to source complete address strings. Those address sources usually have their own IDs (which, to be clear, are completely separate from Naurt’s own ID system). Some of the underlying datasets have their IDs exposed for search too, which can be a great way to search if you already use those.
At the moment, we only support searching by an Ordnance Survey UPRN or Royal Mail PAF UDPRN. If you are already using an Ordnance Survey address product, or have access to UPRN/UDPRN numbers in any way, this can be a very convenient way to quickly search.
Please note that Ordnance Survey UPRN/Royal Mail PAF UDPRN numbers are only available to search in Great Britain.
-
Configure a
POSTrequest to the final-destination endpoint with the following headers.Terminal window https://api.naurt.net/final-destination/v2Authorization: <API-KEY-HERE>Content-Type: application/json -
Configure your JSON payload with a
source_idobject.{"queries":[{"source_id": {"os_uprn": "200001191298"}}]}{"queries":[{"source_id": {"os_udprn": "17594066"}}]}{"request_id": "400e246e-b43d-4b1c-bdf7-8e93d2f72d8d","responses": [{"additional_matches": [],"best_match": {"address": "10 Windall Close, London, SE19 2JR, United Kingdom","geojson": {"features": [{"geometry": {"coordinates": [-0.07391299999999999, 51.410773000000006],"type": "Point"},"properties": { "naurt_type": "basic_geocode" },"type": "Feature"},{"geometry": {"coordinates": [[-0.073891348, 51.410801212]],"type": "MultiPoint"},"properties": {"accuracy": { "quality": "high" },"naurt_type": "naurt_door"},"type": "Feature"},{"geometry": {"coordinates": [[[-0.0741041683111221, 51.41071513067823],[-0.07386570536755072, 51.410710279643126],[-0.0738609864854256, 51.410800524672936],[-0.074099449428997, 51.41080537569849],[-0.0741041683111221, 51.41071513067823]]],"type": "Polygon"},"properties": {"contributors": ["© OpenStreetMap contributors"],"naurt_type": "naurt_building"},"type": "Feature"},{"geometry": {"coordinates": [[[-0.07389883678909012, 51.41079869373152],[-0.07386246359535845, 51.410797960618936],[-0.07385807707661504, 51.41088263008399],[-0.07389445027034673, 51.41088336319524],[-0.07389883678909012, 51.41079869373152]]],"type": "Polygon"},"properties": {"accuracy": { "quality": "high" },"minimum_parking_to_door_distance": 0.5900660376743742,"naurt_type": "naurt_parking"},"type": "Feature"}],"type": "FeatureCollection"},"id": "a4d6a4d2-81f9-3cd3-bd72-b375c50077ab","search_confidence": 1.0},"status": "ok"}],"version": "v2.6.9-hf.1"}