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, 2020 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, 2020 at 10:32

1 Answer 1


{{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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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