Search by ID

You may have noticed that every destination comes with an id field. This is a unique ID for every address. You can also search by this. You could, for example, keep a list of favourite addresses.

Request

JSON
POST  https://api.naurt.net/final-destination/v1
Content-Type: application/json
Authorization: <API_KEY_HERE>
{
  "id": Option<String>, 
  "country": Option<Enum<Country>>
}

Parameters

ParameterTypeOptionalDefaultDescription
idString (UUID)YesNoneThe unique address ID for direct lookup.
countryStringYesNoneOptional but strongly suggested two digit country code which helps with performance.
Currently supported country tags are
  • AE: UAE (Preview)
  • AT: Austria
  • AU: Australia
  • BE: Belgium (BETA)
  • BR: Brazil (BETA)
  • CA: Canada
  • CH: Switzerland (BETA)
  • CZ: Czechia (BETA)
  • DE: Germany
  • DK: Denmark
  • EG: Egypt (Preview)
  • ES: Spain
  • FI: Finland
  • FR: France (Please note that Naurt currently only covers Metropolitan France)
  • GB: United Kingdom
    • UK: United Kingdom (alternative ISO Country code)
  • GG: Guernsey (British Crown Dependency)
  • HK: Hong Kong (Preview)
  • IE: Ireland
  • IM: Isle of Man (British Crown Dependency)
  • IT: Italy
  • JE: Jersey (British Crown Dependency)
  • JP: Japan (Preview)
  • KR: South Korea (Preview)
  • LU: Luxemboug (BETA)
  • NL: Netherlands
  • NO: Norway
  • NZ: New Zealand
  • PL: Poland (BETA)
  • PT: Portugal
  • TW: Taiwan (Preview)
  • US: United States
  • SA: Saudi Arabia (Preview)
  • SE: Sweden
  • SG: Singapore
  • SI: Slovenia (BETA)

Example

CURL
curl -XPOST \
-H "Content-type: application/json" \
-H "Authorization: <API_KEY_HERE>"  \
-d '{"id":"ca7e417f-d959-5f73-6d53-d9172593422b", "country": "UK"}' \
'https://api.naurt.net/final-destination/v1'

Response

Success

A 200 response code indicates a successful response with the format as follows.

JSON
{
  "best_match": Option<Object<HitData>>,
  "version": Option<String>
}

The best_match in this case will be the matching ID.

The HitData is

JSON
{
  "id": String,
  "address": String,
  "geojson": Object<GeoJSON>
}

Failure

A response code other than 200 indicates a failure to retrieve the requested destination. See this page for more information on errors.

In the case that no matching ID can be found, the response JSON will not contain any results, but instead a "naurt_info" message.

JSON
{"naurt_info":"Successful request. No destinations match search conditions."}

Example

{
    "additional_matches": null, 
    "best_match": {
        "address": "The Martha Gunn, 100 Upper Lewes Road, Brighton & Hove, United Kingdom, BN2 3FE", 
        "geojson": {...}, // omitted for brevity 
        "id": "c56dbebb-c7ab-ede2-a7ac-f84e57d1878d"
    },
    "version": "1.3.0"
}

Search Restrictions

Destinations requested via the API are subject to some restrictions.

  • No more than 300 requests per minute can be sent to this endpoint per API key. This limit can be adjusted by speaking to our support team.
  • Currently there is a maximum return of 5 destinations per request.

Full Examples

POST  https://api.naurt.net/final-destination/v1
Content-Type: application/json
Authorization: <API_KEY_HERE>
{
    "id": "c56dbebb-c7ab-ede2-a7ac-f84e57d1878d",
    "country": "UK"
    
}
{
    "additional_matches": null,
    "best_match": {
        "address": "The Martha Gunn, 100, Upper Lewes Road, Brighton, East Sussex, England, United Kingdom, BN2 3FE",
        "geojson": {
            "features": [
                {
                    "geometry": {
                        "coordinates": [
                            [
                                [
                                    -0.12752,
                                    50.83547
                                ],
                                [
                                    -0.127566,
                                    50.835447
                                ],
                                [
                                    -0.127697,
                                    50.835555
                                ],
                                [
                                    -0.127652,
                                    50.835577
                                ],
                                [
                                    -0.12752,
                                    50.83547
                                ]
                            ]
                        ],
                        "type": "Polygon"
                    },
                    "properties": {
                        "naurt_type": "naurt_door"
                    },
                    "type": "Feature"
                },
                {
                    "geometry": {
                        "coordinates": [
                            [
                                [
                                    -0.127597,
                                    50.835464
                                ],
                                [
                                    -0.12773,
                                    50.8354
                                ],
                                [
                                    -0.127757,
                                    50.835423
                                ],
                                [
                                    -0.127775,
                                    50.835415
                                ],
                                [
                                    -0.12786,
                                    50.835484
                                ],
                                [
                                    -0.127709,
                                    50.835556
                                ],
                                [
                                    -0.127597,
                                    50.835464
                                ]
                            ]
                        ],
                        "type": "Polygon"
                    },
                    "properties": {
                        "naurt_type": "naurt_building",
                        "contributors": [
                            "© OpenStreetMap contributors"
                        ]
                    },
                    "type": "Feature"
                },
                {
                    "geometry": {
                        "coordinates": [
                            [
                                [
                                    -0.12752,
                                    50.83547
                                ],
                                [
                                    -0.127566,
                                    50.835447
                                ],
                                [
                                    -0.127697,
                                    50.835555
                                ],
                                [
                                    -0.127652,
                                    50.835577
                                ],
                                [
                                    -0.12752,
                                    50.83547
                                ]
                            ]
                        ],
                        "type": "Polygon"
                    },
                    "properties": {
                        "naurt_type": "naurt_parking"
                    },
                    "type": "Feature"
                }
            ],
            "type": "FeatureCollection"
        },
        "id": "c56dbebb-c7ab-ede2-a7ac-f84e57d1878d"
    },
    "version": "1.3.0",
    "request_id": "47cdd308-39c8-4ff4-a982-8f6782ca51ab"
}