itinero/routing

search area for tag

jkoornneef opened this issue · 1 comments

Trying to locate nodes within a radius or rect that contain an Osm tag such as fire hydrant https://wiki.openstreetmap.org/wiki/Tag:emergency%3Dfire_hydrant
I've tried creating a RouterDb from ontario-latest.osm.pbf and then exporting a geojson around a known lat-long using GetGeoJsonAround with no edges, yes vertices, yes Profile details.
In this case none of the vertices have any tags. should tags be available in the geojson, or am I looking in the wrong location, or is it simply not available with itinero?

This is a routing library, the router only keeps tags defined in the profile when it's built, instead of doing that though just use the linestring and find what intersects it from an OSM using something like http://www.osmsharp.com/, you could also put that osm data into SQL with something like: https://wiki.openstreetmap.org/wiki/Osm2mssql if required and then use EntityFramework or your favorite ORM to access the data, or just plain SqlClient... Since the file format is protobuf, I think you can also use blob storage or noSQL solution as well.