Why not ask your question on the new OpenStreetMap Community Forum?

hi all, i have a list of city names in english, i want to export road lengths. using the below syntax, but it doesn't give results for cities like Copenhagen since it's different than the local name. any advices here? i tried name:en, but didn't work.

"Dedicated cycle lanes": """
[out:json];
area[name='{city}']->.a;
way[highway=cycleway][bicycle=designated](area.a);
(._;>;);
out geom;
""",

asked 27 Apr, 14:03

ozlem_'s gravatar image

ozlem_
11112
accept rate: 0%

edited 27 Apr, 14:25

Spiekerooger's gravatar image

Spiekerooger
2.9k22151


You can try name:en For larger cities this should always be populated, int_name could work too.

permanent link

answered 27 Apr, 14:16

SimonPoole's gravatar image

SimonPoole ♦
44.6k13323700
accept rate: 18%

You would need to use 'name:en' not name:en for hstore tags.

Example:

[out:json];
area['name:en'='Rome']->.a;
way[highway=cycleway][bicycle=designated](area.a);
(._;>;);
out geom;

Though for Copenhagen, it does not seem to have any bicycle=designated cycleways. Maybe they use different tagging in Copenhagen?

But the above overpass turbo code works for e.g. Rome, Berlin or Munich (Munich example: http://overpass-turbo.eu/s/1uiK ).

permanent link

answered 27 Apr, 14:22

Spiekerooger's gravatar image

Spiekerooger
2.9k22151
accept rate: 15%

edited 27 Apr, 15:13

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:

×475
×223
×218
×106

question asked: 27 Apr, 14:03

question was seen: 350 times

last updated: 27 Apr, 15:13

powered by OSQA