I am trying to send a simple request to https://overpass-api.de/api/interpreter but I am getting a parser error.

out center;

Error: line 1: parse error: Unknown type "{"

Error: line 1: parse error: An empty query is not allowed

Error: line 1: parse error: ';' expected - '{' found.

Does the API not support the geocodeArea option? This exact code works on overpass turbo.

  • 2
    geocodeArea is special to the overpass turbo api stackoverflow.com/questions/52236655/…
    – Mapperz
    Feb 20 '20 at 1:09
  • @Mapperz: there's no such thing as overpass turbo api. It's either overpass turbo (for the web frontend), or Overpass API (for the backend).
    – mmd
    Feb 21 '20 at 10:32

{{geocodeArea:Oregon}} is syntactic sugar that was invented by overpass turbo (the web frontend).

Overpass API (the backend) doesn't know anything about those shortcuts.

See https://wiki.openstreetmap.org/wiki/Overpass_turbo/Extended_Overpass_Turbo_Queries for more details.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.