[GraphHopper] Generating routing files
Menion Asamm
menion.asamm at gmail.com
Fri Jul 18 10:08:49 UTC 2014
Thanks guys,
I'm building it on PC not in device. What I want is pre-prepared packs
for every country.
--
On 18. 7. 2014 11:17, Peter wrote:
> Hey
>
>>> You'll have to set chShortcuts=no like you did but be sure you
>>> removed the gh folder before you import again otherwise graphhopper
>>> will load and fail (but should report with meaningful error?).
>> I do this always (remove previous directory). I have tried it again
>> just to be sure and same result.
> What error/exception do you get?
>
I use default /config.properties/ file and only change
'osmreader.acceptWay' parameter. Anyway now during testing I found, that
files generated with
prepare.chShortcuts=no
osmreader.acceptWay=car
create a smaller pack for car (just around 60 MB) - it's OK, but this
file throws same issue as I wrote before
/ java.lang.IllegalStateException: Cannot load the graph when using
instance of com.graphhopper.storage.LevelGraphStorage and location:
/storage/emulated/0/Locus/mapsVector/czech-republic-latest.osm-gh///
// at
com.graphhopper.storage.GraphHopperStorage.loadNodesHeader(GraphHopperStorage.java:1456)//
// at
com.graphhopper.storage.GraphHopperStorage.loadExisting(GraphHopperStorage.java:1408)//
// at com.graphhopper.GraphHopper.load(GraphHopper.java:743)/
I've tried to change parameter 'setCHShortcuts' in my app, but no result.
/ GraphHopper tmpHopp = new GraphHopper().forMobile();//
// tmpHopp.setCHShortcuts("no");/
>> Ok, so to sumarize it (mainly for me if I understand all correctly)
>>
>> 1. it's not possible to create one routing pack for car, bike, foot
>> for Android devices because of memory limits (I agree, they are tight
>> - but it's a lot better on 4.x devices)
> you can try it. smallish area should work.
Understand understand. I just because of second limitations, best should
be to create as big files as possible. Anyway I'll try it.
>
>> 2. it's not possible to route over more then one pack. So if I provide
>> for users separate routing packs for every country, it's possible to
>> use only one file at time
> yes
>
> Regards,
> Peter.
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper
Menion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140718/5ed4365a/attachment.html>
More information about the GraphHopper
mailing list