itinero / routing

The routing core of itinero.
Apache License 2.0
220 stars 70 forks source link

search area for tag #317

Open jkoornneef opened 4 years ago

jkoornneef commented 4 years ago

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?

juliusfriedman commented 3 years ago

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.