barefoot icon indicating copy to clipboard operation
barefoot copied to clipboard

Can we use any road network with geometry instead of OSM?

Open asif-rehan opened this issue 4 years ago • 2 comments

As the title says, can I use any road network as the Map Data? Does the map matching code strictly depend on the OSM data?

Thank you!

asif-rehan avatar Jun 19 '20 15:06 asif-rehan

I'd like to ask the same question here, can we support road networks like GEOJSON instead of OSM?

Thank you!

ZhouShowfew avatar May 09 '22 08:05 ZhouShowfew

For the benefit of anyone else reading this, the easiest way to include non OSM data is to convert it into osm.xml with a tool like https://github.com/Rub21/geojson2osm and then change the import script to read-xml rather than read-pbf here. Two points is that conversion tool is incomplete or outdated so the xml needs to have a field for version with an integer (it can just be 1) and the changelog field should be an integer rather than a boolean. The second point is there needs to be a highway field (you can just rename a class field for instance in the geojson) with levels that correspond to the weights in roadtypes.json

GeoWonk avatar Aug 26 '22 00:08 GeoWonk