Hello, I want to get all the shops in London. I tried the query below, but it didn't work. Any help please? [out:json]; area[name="London"]; node"shop"=*; out center; Thank you, Catherine asked 27 Jan '21, 21:54 Katerina_Kourou |
There's a few ways to do this, but behind the scenes they do essentially the same job. Note 'node' won't return all shops so I used 'nwr' (nodes/ways/relations) I use:
shop on its own returns 20mb of data so I restricted it to car shops in this example. If you want to display the boundary use this:
answered 27 Jan '21, 23:27 DaveF Thanks Dave. I want though a way to get not only the category "car", but all the categories that are included in the shop. E.g. Supermarket+car+clothes etc..Eveything! Any way to do that please?
(28 Jan '21, 08:05)
Katerina_Kourou
Remove '=car' There's a fair bit of info on the wiki such as this page: https://wiki.openstreetmap.org/wiki/Overpass_API/Overpass_API_by_Example
(30 Jan '21, 23:02)
DaveF
|