This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to get all the city squares in a country?

1

I need a list of all the city squares in a country. Does anyone know how to search for it? Thanks!

asked 20 Nov '15, 20:50

eselcuk's gravatar image

eselcuk
26112
accept rate: 0%

2

It depends on what you consider a "city square". Most plazas are likely tagged as highway=pedestrian areas, but it isn't clear if that's what you're looking for.

(20 Nov '15, 23:59) alester

One Answer:

1

Get yourself a country extract and search for objects with

highway=pedestrian and (area=yes and/or type=multipolygon) and name is not empty

According to the tool you use the exact syntax will change. You can find documentation of suitable tools in the osm wiki, e.g. Osmosis, osmfilter, or use an online service like overpass.

answered 24 Nov '15, 14:20

dieterdreist's gravatar image

dieterdreist
3.7k113567
accept rate: 3%

Source code available on GitHub .