Clustered Batch Search
As discussed in the Quickstart, there are plenty of ways to access Naurt data. These examples will guide you through how you can perform multiple Naurt searches in a single request, clustering the result for optimal on-foot delivery routing. Before continuing, make sure you have your free API key from the Naurt Dashboard.
You may have noticed by now that the queries field in each request is an array. Without changing endpoint, you’re able to use this array
to search for up to 200 results in any search format you wish.
-
Configure a
POSTrequest to the rendezvous endpoint with the following headers.Terminal window https://api.naurt.net/rendezvous/v1Authorization: <API-KEY-HERE>Content-Type: application/json -
Configure your JSON payload with any type of search you like.
{"queries": [{"id": "c56dbebb-c7ab-ede2-a7ac-f84e57d1878d"},{"source_id": {"os_udprn": "17594066"}},{"source_id": {"os_uprn": "200001191298"}},{"location": {"latitude": 50.542,"longitude": 0.234}},{"address_string": "32 Thames St, Windsor SL4 1PS"},{"address_structured": {"postalcode": "10013","street_name": "Broome Street","street_number": "489","city": "New York",},"location": {"latitude": 40.72,"longitude": -74.0}}]}{"responses": [{"centre": {"address": "3 Kirkstone Way, Lowestoft, NR32 4UN, United Kingdom","distance": 0.0,"geojson": {"features": [{"geometry": {"coordinates": [1.7310700000000003,52.49203499999999],"type": "Point"},"properties": {"naurt_type": "basic_geocode"},"type": "Feature"},{"geometry": {"coordinates": [[1.731070266,52.492034284]],"type": "MultiPoint"},"properties": {"accuracy": {"quality": "low"},"naurt_type": "naurt_door"},"type": "Feature"},{"geometry": {"coordinates": [[[1.7312548126920333,52.49202348267429],[1.7312184299280784,52.49202398667535],[1.7312153406778183,52.49194131256115],[1.7312517234417737,52.49194080855915],[1.7312548126920333,52.49202348267429]]],"type": "Polygon"},"properties": {"accuracy": {"quality": "low"},"minimum_parking_to_door_distance": 12.552042598053564,"naurt_type": "naurt_parking"},"type": "Feature"}],"type": "FeatureCollection"},"id": "e857eae3-7157-333c-8a8f-974eab4c7abf"},"covers": [{"address": "3 Kirkstone Way, Lowestoft, NR32 4UN, United Kingdom","geojson": {"features": [{"geometry": {"coordinates": [1.7310700000000003,52.49203499999999],"type": "Point"},"properties": {"naurt_type": "basic_geocode"},"type": "Feature"},{"geometry": {"coordinates": [[1.731070266,52.492034284]],"type": "MultiPoint"},"properties": {"accuracy": {"quality": "low"},"naurt_type": "naurt_door"},"type": "Feature"},{"geometry": {"coordinates": [[[1.7312548126920333,52.49202348267429],[1.7312184299280784,52.49202398667535],[1.7312153406778183,52.49194131256115],[1.7312517234417737,52.49194080855915],[1.7312548126920333,52.49202348267429]]],"type": "Polygon"},"properties": {"accuracy": {"quality": "low"},"minimum_parking_to_door_distance": 12.552042598053564,"naurt_type": "naurt_parking"},"type": "Feature"}],"type": "FeatureCollection"},"id": "e857eae3-7157-333c-8a8f-974eab4c7abf","search_confidence": 1.0}]},{"centre": {"address": "10 Windall Close, London, SE19 2JR, United Kingdom","distance": 0.0,"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"},"covers": [{"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}]},{"centre": {"address": "Theatre Royal, 32 Thames Street, Windsor, SL4 1PS, United Kingdom","distance": 0.0,"geojson": {"features": [{"geometry": {"coordinates": [-0.607894,51.48441700000001],"type": "Point"},"properties": {"naurt_type": "basic_geocode"},"type": "Feature"},{"geometry": {"coordinates": [[-0.607730566,51.484306359]],"type": "MultiPoint"},"properties": {"accuracy": {"quality": "high"},"naurt_type": "naurt_door"},"type": "Feature"},{"geometry": {"coordinates": [[[-0.6081480199888122,51.484251832439384],[-0.6081740210612274,51.48423064494844],[-0.6081171832580435,51.48416877579399],[-0.6076321710110988,51.48434154340296],[-0.6077148950515365,51.484431589906734],[-0.6078542282003951,51.48438195173696],[-0.607763805899748,51.48445563385991],[-0.6078900193130887,51.48459301885964],[-0.6076717703860179,51.48467077080818],[-0.6077596332076164,51.484766410265024],[-0.6075029886359617,51.48485784043572],[-0.6075584809443502,51.48491824407875],[-0.6078787814194531,51.48480413648076],[-0.6078353565108041,51.48475686236509],[-0.6078553420749278,51.484740575420375],[-0.6079156657383522,51.48476928282517],[-0.6080668450377913,51.484715424798026],[-0.6080587524094838,51.48470661589923],[-0.6083234802747328,51.48461230572235],[-0.6082691440561083,51.48455316009256],[-0.6082085193541497,51.484574757888225],[-0.6081645879433406,51.4845269379839],[-0.6082494625261026,51.4844967010354],[-0.6083327009886651,51.484587307187496],[-0.6084802210967942,51.484534752548],[-0.6083796412878528,51.48442526996536],[-0.608307069052092,51.48445112418966],[-0.6082849898907927,51.484440616874934],[-0.6083608618303038,51.48441358710801],[-0.6082621642483367,51.48430615307373],[-0.6081480199888122,51.484251832439384]]],"type": "Polygon"},"properties": {"contributors": ["© OpenStreetMap contributors"],"naurt_type": "naurt_building"},"type": "Feature"},{"geometry": {"coordinates": [[[-0.6077229764102252,51.484238734703865],[-0.607698340716131,51.48422205444979],[-0.6075983751538052,51.48427930925655],[-0.6076230108478993,51.48429598948971],[-0.6077229764102252,51.484238734703865]]],"type": "Polygon"},"properties": {"accuracy": {"quality": "high"},"minimum_parking_to_door_distance": 7.537821135977796,"naurt_type": "naurt_parking"},"type": "Feature"}],"type": "FeatureCollection"},"id": "c25f8e54-7a2a-37b7-9aa3-677f83685aed"},"covers": [{"address": "Theatre Royal, 32 Thames Street, Windsor, SL4 1PS, United Kingdom","geojson": {"features": [{"geometry": {"coordinates": [-0.607894,51.48441700000001],"type": "Point"},"properties": {"naurt_type": "basic_geocode"},"type": "Feature"},{"geometry": {"coordinates": [[-0.607730566,51.484306359]],"type": "MultiPoint"},"properties": {"accuracy": {"quality": "high"},"naurt_type": "naurt_door"},"type": "Feature"},{"geometry": {"coordinates": [[[-0.6081480199888122,51.484251832439384],[-0.6081740210612274,51.48423064494844],[-0.6081171832580435,51.48416877579399],[-0.6076321710110988,51.48434154340296],[-0.6077148950515365,51.484431589906734],[-0.6078542282003951,51.48438195173696],[-0.607763805899748,51.48445563385991],[-0.6078900193130887,51.48459301885964],[-0.6076717703860179,51.48467077080818],[-0.6077596332076164,51.484766410265024],[-0.6075029886359617,51.48485784043572],[-0.6075584809443502,51.48491824407875],[-0.6078787814194531,51.48480413648076],[-0.6078353565108041,51.48475686236509],[-0.6078553420749278,51.484740575420375],[-0.6079156657383522,51.48476928282517],[-0.6080668450377913,51.484715424798026],[-0.6080587524094838,51.48470661589923],[-0.6083234802747328,51.48461230572235],[-0.6082691440561083,51.48455316009256],[-0.6082085193541497,51.484574757888225],[-0.6081645879433406,51.4845269379839],[-0.6082494625261026,51.4844967010354],[-0.6083327009886651,51.484587307187496],[-0.6084802210967942,51.484534752548],[-0.6083796412878528,51.48442526996536],[-0.608307069052092,51.48445112418966],[-0.6082849898907927,51.484440616874934],[-0.6083608618303038,51.48441358710801],[-0.6082621642483367,51.48430615307373],[-0.6081480199888122,51.484251832439384]]],"type": "Polygon"},"properties": {"contributors": ["© OpenStreetMap contributors"],"naurt_type": "naurt_building"},"type": "Feature"},{"geometry": {"coordinates": [[[-0.6077229764102252,51.484238734703865],[-0.607698340716131,51.48422205444979],[-0.6075983751538052,51.48427930925655],[-0.6076230108478993,51.48429598948971],[-0.6077229764102252,51.484238734703865]]],"type": "Polygon"},"properties": {"accuracy": {"quality": "high"},"minimum_parking_to_door_distance": 7.537821135977796,"naurt_type": "naurt_parking"},"type": "Feature"}],"type": "FeatureCollection"},"id": "c25f8e54-7a2a-37b7-9aa3-677f83685aed","search_confidence": 1.0}]},{"centre": {"address": "489 Broome St, UNIT 493, New York, NY 10013, United States","distance": 0.0,"geojson": {"features": [{"geometry": {"coordinates": [-74.00273,40.722939999999994],"type": "Point"},"properties": {"naurt_type": "basic_geocode"},"type": "Feature"},{"geometry": {"coordinates": [[-74.00263125,40.723055293]],"type": "MultiPoint"},"properties": {"accuracy": {"quality": "high"},"naurt_type": "naurt_door"},"type": "Feature"},{"geometry": {"coordinates": [[[-74.00232824671696,40.7229216919784],[-74.00296964289005,40.72320437480329],[-74.00360140414838,40.72238104624978],[-74.00339896348125,40.72229182350918],[-74.00341761326008,40.7222675184199],[-74.00297865775413,40.7220740547682],[-74.00280964413335,40.72229431995589],[-74.00280964413335,40.72229431995589],[-74.00232824671696,40.7229216919784]]],"type": "Polygon"},"properties": {"contributors": ["© OpenStreetMap contributors"],"naurt_type": "naurt_building"},"type": "Feature"},{"geometry": {"coordinates": [[[-74.00263337207797,40.72314732814672],[-74.00265318758333,40.72312419462199],[-74.00253926912725,40.72306814815707],[-74.00251945362189,40.7230912817013],[-74.00263337207797,40.72314732814672]]],"type": "Polygon"},"properties": {"accuracy": {"quality": "high"},"minimum_parking_to_door_distance": 10.235403750728054,"naurt_type": "naurt_parking"},"type": "Feature"}],"type": "FeatureCollection"},"id": "b97a3492-7899-36b7-871d-8a849f0edf6c"},"covers": [{"address": "489 Broome St, UNIT 493, New York, NY 10013, United States","distance": 399.75,"geojson": {"features": [{"geometry": {"coordinates": [-74.00273,40.722939999999994],"type": "Point"},"properties": {"naurt_type": "basic_geocode"},"type": "Feature"},{"geometry": {"coordinates": [[-74.00263125,40.723055293]],"type": "MultiPoint"},"properties": {"accuracy": {"quality": "high"},"naurt_type": "naurt_door"},"type": "Feature"},{"geometry": {"coordinates": [[[-74.00232824671696,40.7229216919784],[-74.00296964289005,40.72320437480329],[-74.00360140414838,40.72238104624978],[-74.00339896348125,40.72229182350918],[-74.00341761326008,40.7222675184199],[-74.00297865775413,40.7220740547682],[-74.00280964413335,40.72229431995589],[-74.00280964413335,40.72229431995589],[-74.00232824671696,40.7229216919784]]],"type": "Polygon"},"properties": {"contributors": ["© OpenStreetMap contributors"],"naurt_type": "naurt_building"},"type": "Feature"},{"geometry": {"coordinates": [[[-74.00263337207797,40.72314732814672],[-74.00265318758333,40.72312419462199],[-74.00253926912725,40.72306814815707],[-74.00251945362189,40.7230912817013],[-74.00263337207797,40.72314732814672]]],"type": "Polygon"},"properties": {"accuracy": {"quality": "high"},"minimum_parking_to_door_distance": 10.235403750728054,"naurt_type": "naurt_parking"},"type": "Feature"}],"type": "FeatureCollection"},"id": "b97a3492-7899-36b7-871d-8a849f0edf6c","search_confidence": 1.0}]}],"unmatched": [{"additional_matches": false,"id": "c56dbebb-c7ab-ede2-a7ac-f84e57d1878d"},{"additional_matches": false,"location": {"distance_filter": 5000.0,"latitude": 50.542,"longitude": 0.234}}],"version": "v2.6.9-hf.1"}
The response will then contain a best match for each of queries used to search, clustered to buildings that should be delivered to on foot.