Changed
- POST /v1/location/street/query, GET /v1/search/suggest with
granularity=streetand POST /v1/address/resolve (asoptions.dataset) take adatasetchoice for street results.openreads Ordnance Survey open data published under the Open Government Licence,ngdreads the Ordnance Survey National Geographic Database, andopen_then_ngd, the default, reads the open data first and turns to the NGD only when the open data cannot answer. Postcode lookups are answered from the NGD, so they return400underopen. Street matches from suggest and resolve carry thedatasetthat supplied them. - Each item in
datafrom POST /v1/location/street/query is a street record:id,usrn,country, thedatasetthat supplied it,name,descriptors(names in other languages),locality,town,district,county,postcodeDistrict,streetType,location, and the start and end coordinates where the dataset records them. To migrate, read street details from these fields on each record. - Read
nameKindbefore showingnameas a street name:nameis a street name, whiledescriptoris a description the naming authority records in place of one, such as a road number.nameConfidencesays whether the open data holds one name for the street (confident), several competing names (ambiguous) or none (absent, withnamenull).languageon a descriptor is present only when the dataset records it. - Properties and counts now sit on each street. Set
includePropertiesto receiveproperties.uprnsandproperties.hasMoreon every street, paged bypropertyOptions(limitfrom 1 to 500, default 100, andoffset), and setincludeStatisticsto receivepropertyCount.propertyOptions.includeHistoricadds retired addresses and needsdatasetset tongd. fieldslimits each record to the street fields you name. Underopen_then_ngd, a named field the open data lacks for a street is filled from the NGD,provenancethen shows which dataset supplied each field, and a name is always taken whole from one dataset.- Name searches are case-insensitive and return the closest matches first. Name, coordinate and postcode lookups page with
starting_after, set to theidof the last street on the current page, andhas_morereports whether another page follows. attributioncarries the acknowledgement you must show wherever the open-data street fields are displayed, and is present whenever a returned street includes open data.- POST /v1/location/street/query validates its request strictly: a field it does not recognise returns
400. To migrate, remove any fields outside the documented request.
Removed
- The top-level
propertiesandstatisticsblocks on the POST /v1/location/street/query response. RequestincludePropertiesandincludeStatisticsinstead and readpropertiesandpropertyCounton each street record.