This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

Empty response for few UK postal codes

0

Most of the places in UK have common postal prefix. Example: (EX23, EX23 0AA, EX23 0AB,...), (DN15, DN15 0AA,...),..

When queried with common postal prefix like this, I am getting empty response. Whereas, when queried with their sub-categories like this, I am getting accurate results. Out of nearly 1500 UK postal codes, 300 suffer from this problem. Can someone please help me in this?

asked 16 Nov '18, 12:10

Priyalakshmi%20Sundaravel's gravatar image

Priyalakshmi...
11113
accept rate: 0%

edited 16 Nov '18, 12:17


2 Answers:

1

It probably means that the postcodes aren't mapped in OSM. You can download postcode centroids for free from the Codepoint Open dataset at https://www.ordnancesurvey.co.uk/business-and-government/products/finder.html which will be more complete than OSM.

answered 16 Nov '18, 14:46

Richard's gravatar image

Richard ♦
30.9k44279412
accept rate: 18%

1

In theory the first half of the postcode won't be mapped on anything in OpenStreetMap, as they aren't postcodes, though trying a postcode prefix local to me I find nominatim is finding it on a place node where someone has stuck a postal_code tag on containing it which I'll be removing now I've seen it, as the CO15 covers much more than just Jaywick https://www.openstreetmap.org/node/291718149

answered 16 Nov '18, 17:46

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%