[OSM-newbies] Overpass API to get all amenities?
Richard Welty
rwelty at averillpark.net
Fri May 3 19:06:17 UTC 2013
On 5/3/13 2:59 PM, Tac Tacelosky wrote:
> I'd like to get all nodes and ways within a bounding box that have any
> amenity tags. I think the Overpass API is the best way to go, but the
> filtering seems to be for a specific amenity, e.g. k="amenity" and
> v="restaurant". I tried "*", but that didn't work.
>
> Any suggestions on how to get all nodes and ways via an API call that are
> tagged accordingly?
>
try this:
<has-kv k="amenity" regv="." />
richard
More information about the newbies
mailing list