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

Hi there,

when running this overpass query, all postal_code relations in Germany are returned except for one (78266, relation id 3375856).

[out:json];
area[admin_level="2"][type="boundary"]["ISO3166-1"="DE"]->.country;
relation(area.country)[boundary="postal_code"];
out tags;

Without the area filter, the relation is found and returned. However, I don't want to (and cannot) process all postal_code relations, I only want to get the german ones.

Is there something wrong with Overpass/OSM or am I doing something wrong?

Thanks in advance, Daniel

asked 10 May '22, 15:44

danielkbx's gravatar image

danielkbx
11112
accept rate: 0%

The offending postal_code is of Büsingen am Hochrhein, a German exclave in Switzerland. The area is included in Germany's admin_level 2 relation.
Maybe there is an issue with the postal code and the country boundary being exactly the same? Just guessing.

(10 May '22, 19:15) TZorn

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:

×236
×213
×88
×66
×10

question asked: 10 May '22, 15:44

question was seen: 957 times

last updated: 10 May '22, 19:15

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