NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum


Hi -

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


An example of a postcode 'node' is this: I did find the postcode 'relation' that corresponds here:

...I am mostly interested in just getting the lat/long (point location) of all available 'addr:postcode' 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. /


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

out meta;

; out skel qt;

asked 21 Apr '17, 01:23

goldfishinriver's gravatar image

accept rate: 0%

edited 21 Apr '17, 17:34


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

If you look e.g. at Saint-Etienne via Nominatim: you see that the postcode is not coming from a unique node. But if you look at the boundary relation, 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 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

accept rate: 21%

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 21 Apr '17, 01:23

question was seen: 3,366 times

last updated: 22 Apr '17, 06:55

NOTICE: is being shutdown on 1st March 2024. Please use the OpenStreetMap Community Forum