[GraphHopper] Problems routing long distance routes without ch shortcuts

Peter K peathal at yahoo.de
Fri Aug 23 20:15:29 UTC 2013


Hi Robert,

on Android you can only utilize 32MB of RAM or so (depending on the
device). So, to make the none-CH version working on Android you'll have
to use a trick which points to offhead memory which is NOT managed by
the Android OS, see here:
http://stackoverflow.com/questions/14789985/trick-to-use-largeheap-on-older-androids-3

or you'll have to throw away some information in the queue and make the
algo a heuristical one.

Regards,
Peter.

> Hi,
> i have experienced some problems when routing long distances without
> contraction hierarchies. If i route from south-west Bavaria to
> north-east Bavaria Graphhopper will stop throwing a
> java.langOutOfMemory exception, even my android device has 2GB of ram.
> Same error occurs when i route multiple times. After routing 5-6 times
> with shorter paths the device runs out of memory, too. I need to route
> without ch shortcuts.
>
> Thanks in advance,
>
> Robert
>
> _______________________________________________
> GraphHopper mailing list
> GraphHopper at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/graphhopper
>




More information about the GraphHopper mailing list