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
14581017
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.0k726
accept rate: 7%

Your answer
toggle preview

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:

×261
×166
×160
×16
×5

question asked: 28 Dec '20, 09:28

question was seen: 100 times

last updated: 28 Dec '20, 11:22

powered by OSQA