NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

When i am trying to map to a specific postcode openstreetmap returns no results. Any postcode in the edinburgh area appears as in the london area. So if i enter EH7 6EZ it comes back as if i have typed E7 6EZ. If i enter EHH7 6EZ then it shows up as edinburgh? Openstreetmap appears to strip out the second letter which makes the postcode incorrect. Has anyone seen this issue before and know how to fix it?

asked 05 Jul '13, 10:24

sbrooks's gravatar image

sbrooks
1112
accept rate: 0%

edited 05 Jul '13, 10:44

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108

1

Do you mean you are unable to enter that postcode for a feature, or that you can enter it but when you search for it you don't get the results you're expecting? If the former, which editor are you using?

(05 Jul '13, 10:26) Jonathan Ben...
2

Try searching for it, and things happen as described. But not for say CO15 1AA which goes to the right place. As far as I can tell the postcode isn't currently in OSM (though I may be wrong) so perhaps some issue with nominatim's GB postcode data. In fact, it may be missing the postcode as EH7 6HF returns a postcode result fine.

(05 Jul '13, 10:34) EdLoach ♦
1

Yes, when i enter the postcode EH7 6EZ it shows up as the london area because for some reason the H out of the postcode is getting stripped out.

(05 Jul '13, 10:39) sbrooks
1

I get an Edinburgh location with a raw postcode (EH7 6EZ). Did you search with the street name too?

(05 Jul '13, 10:44) SK53 ♦

It looks like the postcode you're searching for simply isn't in OpenStreetMap, in which case a search using Nominatim, the native OSM search engine, won't find it. On openstreetmap.org a search should still show results from NPEMap / FreeThe Postcode which finds the right area.

If the postcodes you're looking for get added to OpenStreetMap, your search will succeed. You could add these yourself, or offer a bounty to a mapper who correctly adds them if they're important to you.

The reason you're getting what look like strange results from Nominatim is that it's a text-only search engine, and doesn't understand the structure of postcodes. It's finding the closest text match it can to your query, which unfortunately isn't very helpful.

permanent link

answered 05 Jul '13, 10:43

Jonathan%20Bennett's gravatar image

Jonathan Ben...
8.3k1785108
accept rate: 18%

edited 05 Jul '13, 11:10

1

That seems to make sense although it makes the tool pretty useless to us. We have a map which shows a radius around a set postcode which is sent to the nominatim web service. If it isn't up to date then it's pretty useless. Is there any other web service which is more up to date which can do this? (Other than google maps!)

(05 Jul '13, 11:02) sbrooks
2

Not at all -- it's just that those particular postcodes haven't been added to OSM yet, and that's easy to rectify.

(05 Jul '13, 11:10) Jonathan Ben...

But the problem is i could enter a random postcode and it won't find it and i won't have the time to submit the postcode to osm.

(05 Jul '13, 11:13) sbrooks

But I was once told that Nominatim uses OS CodePoint-Open as a data source (http://lists.openstreetmap.org/pipermail/talk-gb/2012-October/014073.html ), in which case all postcodes should be included. It seems something is not working that should.

(05 Jul '13, 11:57) sdoerr

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689
×55

question asked: 05 Jul '13, 10:24

question was seen: 3,339 times

last updated: 05 Jul '13, 11:59

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum