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

0
1

I'd like to limit a query (for highways) by postal_code and country (since the postal_codes are only unique on a national level).

Let's say that is my query:

area[postal_code="19300"]->.searchArea;
area.searchArea[name="Germany"];
way(area.searchArea)[highway][name];
(._;>;);
out;

http://overpass-turbo.eu/s/QeG

By that I get highways in Germany and in France.

I thought about something like

area.searchArea[name="Germany"].->searchArea2;
way(area.searchArea2)[highway][name];

But this doesn't work.

What would be the correct syntax?

Or how could I link something like

{{geocodeArea:Germany}}

to this kind of query?

Thanks!

asked 30 Jan '20, 14:04

entenbein's gravatar image

entenbein
21112
accept rate: 0%

Yeah, that one solved it!

(30 Jan '20, 14:57) entenbein

permanent link

answered 30 Jan '20, 14:58

entenbein's gravatar image

entenbein
21112
accept rate: 0%

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:

×710
×228

question asked: 30 Jan '20, 14:04

question was seen: 2,225 times

last updated: 30 Jan '20, 14:58

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