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

Using in Overpass Turbo, I am trying to filter nodes tagged with key place:PH and with values which are not any of the following: barangay, municipality, sitio, purok, or province.

I tried this code below :

[out:xml]/*fixed by auto repair*/[timeout:50];
// gather results
(
  node["place:PH"!~"(barangay|municipality|sitio|purok|province)"]{{bbox}};
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/

but it gives the following unknown error:

An error occured during the execution of the overpass query! This is what overpass API returned:

Error: line 4: parse error: ';' expected - '17.731682803940448' found.

Can anybody please help on how to fix the query?

asked 28 Dec '20, 09:28

JAT86's gravatar image

JAT86
240181925
accept rate: 0%


Your query is missing round brackets before and after {{bbox}}. The correct query is

[out:xml]/*fixed by auto repair*/[timeout:50];
// gather results
(
  node["place:PH"!~"(barangay|municipality|sitio|purok|province)"]({{bbox}});
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/
permanent link

answered 28 Dec '20, 11:22

Mannivu's gravatar image

Mannivu
1.1k31027
accept rate: 6%

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:

×293
×228
×191
×18
×6

question asked: 28 Dec '20, 09:28

question was seen: 1,187 times

last updated: 28 Dec '20, 11:22

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