[GraphHopper] Map-matching Android

Robin Hunter robin at crml.com
Fri Jun 19 06:58:19 UTC 2015


Hi,

I have a full -gh directory so that graphhopper on Android will load the 
map (noting that it seems that the javax XML code will not allow an OSM 
map to be loaded directly in Android) and I am now trying to get the 
map-matching working.

This fails in one of two ways -

1) Firstly, I did not include graphHopper.setCHEnable(false);

In this instance the graph is loaded as a LevelGraphStorage type but 
this is not allowed in the LocationIndexTree constructor and I cannot 
find a mechanism to get the baseGraph passed that does not cause a 
error, for example class cast exception.

2) Secondly, I did include graphHopper.setCHEnable(false);

In this instance I get Cannot load the graph when using instance of 
com.graphhopper.storage.GraphHopperStorage due to a hashcode 
verification check in loadNodesHeader().



So far I have not found a mechanism to get to the point where I can 
create a MapMatching object.

Any help appreciated.

Thanks,

Robin



More information about the GraphHopper mailing list