[GraphHopper] Generating routing files

Peter graphhopper at gmx.de
Fri Jul 18 08:58:46 UTC 2014


Hey Menion,

*> Issue 1* osmreader.acceptWay=car,bike

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?).

But keep in mind that with chShortcuts=no you cannot really use GH on
mobile devices (too much RAM required), or vote for magic issue #1 ;)
https://github.com/graphhopper/graphhopper/issues/1


> *Issue 2 *osmreader.acceptWay=car,bike,foot,mtb

You can set osmreader.bytesForFlags=8
note: this isn't tested that much :)


> 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.

Yes, turn instructions are suboptimal. See these issues for some
discussion about it:
https://github.com/graphhopper/graphhopper/issues/94
https://github.com/graphhopper/graphhopper/issues/185

Where #94 contains a workaround from a user, but this won't work
properly if CH is active.


> Anyway routing is fast and quite precise. Nice work.

Thanks! Still keep in mind that car routing is without turn restrictions
(is top priority currently)

Kind Regards,
Peter.


On 18.07.2014 10:43, Jir(í Mlavec wrote:
> *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
>
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/graphhopper

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/graphhopper/attachments/20140718/a028fc4f/attachment.html>


More information about the GraphHopper mailing list