This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

How to make roads with many points for GraphHopper?

0

I want to generate a OSM data for GraphHopper. I have many point coordinates just like

    id, name, x, y
1, road1, 108.000001, 25.0000001
2, road1, 108.000002, 25.0000002
3, road1, 108.000003, 25.0000003
...
1001, road2, 107.000001, 24.000001
1002, road2, 107.000002, 24.000002
1003, road2, 107.000003, 24.000003
...

How could I generate OSM roads with these points? I don't have the GPX data, because I got these point coordinates from a interface. The interface just return the data like above. ps: All of the road are two-ways.

asked 18 May '20, 07:59

19774279's gravatar image

19774279
11224
accept rate: 0%

edited 18 May '20, 08:02

Source code available on GitHub .