Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
asif-rehan opened this issue Jun 19, 2020 · 2 comments
Open

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

asif-rehan opened this issue Jun 19, 2020 · 2 comments

Comments

@asif-rehan
Copy link

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!

@ZhouShowfew
Copy link

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

Thank you!

@GeoWonk
Copy link

GeoWonk commented Aug 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants