GraphHopper.com | Forum | GitHub | Maps | Blog

Cant load graph


#1

i use cruiser latest version 1.4.29 to create graph and it creates graph file of version 5 nodes. when run the application “an error happend while creating graph: version of nodes unsupported 5 it expected version is 4”. how to handle these error?


#2

Cruiser follows GraphHopper latest snapshot development.

If have an application using a GraphHopper older release, then need to create the graph with that version instead.

i.e. clone GraphHopper e.g. 0.10 release and follow instructions here.

Cruiser forum can be found here. :slightly_smiling_face:


#3

when use ‘com.graphhopper:graphhopper-android:0.10.alpha3’ there is aditional error
"Program type already present: com.vividsolutions.jts.JTSVersion" .

i use ‘com.graphhopper:graphhopper-android:0.6.0’ in gradle. how to create the graph with these version with crusier desktop or using comands ?
Any idea? or different way to load and create graphr??
Thanks


#4

GraphHopper Android module is a sample app, not a library to use in projects.
You can study its code and borrow parts of it.

Proper integration of the libraries for 0.10 is demonstrated in its build.gradle.

How to create graphs for specific GraphHopper releases was already mentioned above.


#5

thanks for your answer.
osm file and map file is downloaded but i’m confused to Execute ./graphhopper.sh -a import -i ?
is there aditional software to excute these command?


#6

If you use Windows can see some extra help in documentation here.


#7

thanks for avoiding my confusion. i will try to create the graph using cygwin .

I have aditional question of How do I enable downloading of just one .ghz file?
the graphhopper android sample app downloads only specific maps, but i want to download amap of the country is not available
fileListURL = “http://download2.graphhopper.com/public/maps/” + Constants.getMajorVersion()+"/ ";


#8

GraphHopper sample provides map+graph for some areas, simply for demonstration purposes.

Can download Mapsforge maps in several locations (see VTM documentation).
Regarding the graphs, those are needed to be built for each region.