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

0
1

Hi -

Total newb how to modify this query to get all the available postcode nodes for France in http://overpass-turbo.eu/ . I'm mostly interested in just getting the json returned (if possible).

Edit:

An example of a postcode 'node' is this: http://www.openstreetmap.org/node/2445940960 I did find the postcode 'relation' that corresponds here: http://www.openstreetmap.org/relation/252642

...I am mostly interested in just getting the lat/long (point location) of all available 'addr:postcode' tags....is that plausible to do without querying for the relations (or will I miss nodes in the process if I do NOT query the relations?

/ This shows the postal code points in france. /

[out:json];

area[name="France"]; (node"addr"~"postcode"; );

out meta;

; out skel qt;

asked 21 Apr '17, 01:23

goldfishinriver's gravatar image

goldfishinriver
31337
accept rate: 0%

edited 21 Apr '17, 17:34

1

what is a postcode node ? Can you post a link to an example ?

If you look e.g. at Saint-Etienne via Nominatim: http://nominatim.openstreetmap.org/details.php?place_id=159077530 you see that the postcode is not coming from a unique node. But if you look at the boundary relation http://www.openstreetmap.org/relation/117905, you see a addr:postcode there.

Please clarify your goal by updating the original question or as a comment.

(21 Apr '17, 06:14) escada

So you are looking for all nodes in France whose address information include a postcode ?

The query is http://overpass-turbo.eu/s/oxp but you will need a much longer timeout.

I cannot speak for France, but e.g. in Flanders, we attempt to not map the postal code on individual nodes. We prefer to use postal code relations.

I also do not know how may of the addresses are mapped as nodes in France. Perhaps addresses are also mapped on ways. So be prepared to end up with a large collection of nodes that do not represent anything at all, because data is mapped in another way.

permanent link

answered 22 Apr '17, 06:55

escada's gravatar image

escada
19.0k16166302
accept rate: 21%

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:

×228
×55

question asked: 21 Apr '17, 01:23

question was seen: 3,622 times

last updated: 22 Apr '17, 06:55

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