Osmosis OpenStreetMap (OSM) filter nodes and their ways and relations to location

165 Views Asked by At

Using osmosis, how can one filter nodes with specific key and its associated location?

For example, executing

osmosis --read-pbf myregion.pbf --write-xml highway.osm --node-key keyList="highway"

yields a file named highway.osm that holds all highway nodes where each node has the attributes lat="..." lon="...".

Is there a way to get the node location by name, rather than lat/lon coordinates, from myregion.pbf without implementing a lat/lon to continent/country/city lookup.

For instance, for the node of "New Jersey Turnpike Newark Bay Ext" highway, how to obtain all the following: America/USA/New-York?

0

There are 0 best solutions below