[GraphHopper] Generating routing files
Jiří Mlavec
jiri.mlavec at asamm.com
Fri Jul 18 08:43:48 UTC 2014
*Hello Peter,*
I'm trying to search some information about generating routing files,
but no success, so it will be nice, if you may point me on correct way.
I'm trying to generate routing files for Android (on Android using
latest graphhopper-0.4-SNAPSHOT-android) and ...
Sample map - czech-republic-latest.osm.pbf, 390 MB
_Generating_
osmreader.acceptWay=car
result: 93 MB, works fine
osmreader.acceptWay=foot
result: 140 MB, works fine
osmreader.acceptWay=bike
result: 150 MB, works fine
*Issue 1*
osmreader.acceptWay=car,bike
generator ends on:
/Exception in thread "main" java.lang.IllegalStateException: Multiple
encoders are active. cannot return one:bike,car//
// at
com.graphhopper.routing.util.EncodingManager.getSingle(EncodingManager.java:329)/
after set 'prepare.chShortcuts=no'
result: 93 MB (exactly same as car only), don't work!
requests on car or bike route ends with
/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//
*Issue 2*
osmreader.acceptWay=car,bike,foot,mtb
ends immediately on
/Exception in thread "main" java.lang.IllegalArgumentException: Encoders
are requesting more than 32 bits of way flags. Decrease the number of
vehicles or increase the flags to take long.//
// at
com.graphhopper.routing.util.EncodingManager.registerEncoder(EncodingManager.java:200)/
Is there anything I can do, to fix it. Mainly first issue.
If answer already exists, please point me on correct place.
*Below line*
Otherwise I ride during a week almost 300 km with car only using
GraphHopper and it works really well. What I really miss are
roundabouts, exits from highways and too much "go straight" orders on
places where it's really not needed. Anyway routing is fast and quite
precise. Nice work.
with regards,
Menion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140718/74817ff1/attachment.html>
More information about the GraphHopper
mailing list