What to exactly enter for the "in" field? Let's say I want to query the data of a town called "Georgetown" in Colorado? What do I enter exactly? I've tried a bunch of combinations like "Georgetown, Colorado", but it doesn't retrieve the correct data.

enter image description here


1 Answer 1


For Georgetown, Co, US use the admin level (8)

enter image description here

[out:xml] [timeout:25];
out body;

Note this gets all Georgetowns - but you can filter by state as well or spatially.

  • Thanks, how do you search by state? Sounds obvious, but key=state and value=colorado results in: Successful query, but no result.
    – bart
    Feb 22, 2022 at 2:19
  • "value=colorado" can't be valid. I suggest you to read more about the OSM data model. States are represented by the key "admin_level" and value a number and the name with the key "name".
    – etrimaille
    Feb 22, 2022 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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