Skip to content
karussell edited this page Sep 13, 2012 · 54 revisions

As starting point you can use this example which comes with a prebuilt graphhopper.jar.

To create the included jar from the graphhopper sources you have to call mvn -DskipTests=true clean install assembly:single on the command line - use the graphhopper-[version]-android.jar!

Limitations:

  • For now OSMReader does not work on Android due to some javax.xml dependencies. But you can simply create the graphhopper files on your desktop and copy them to the Android storage. In the logs you should see something like: found graph xy with nodes:3037, edges:3221, edges segments:2, edges segmentSize:16384, created-at:Tue Sep 04 14:54:35 MESZ 2012

  • To avoid RAM-bound graph implementations like MemoryGraphSafe you should use the memory mapped and partially disc-based MMapGraph. But a memory bound a* algoritm is not yet implemented. Let me know if you need this!

Areas as large as Berlin already work: simple routing

Clone this wiki locally