Skip to content
karussell edited this page Sep 20, 2012 · 48 revisions

Set-up

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!

Hint from a user: To deploy the generated jar onto your remote maven repository specify the repository in the pom and call mvn package deploy

Limitations

  • To avoid RAM-bound graph implementations like MemoryGraphSafe you should use MMapGraph.

  • For now OSMReader does not work on Android due to some javax.xml dependencies. But you can simply create the graphhopper folder on your desktop and copy them to the Android storage. At the moment the graphhopper data created with a MMapGraph is different to one created with MemoryGraphSafe. So keep in mind that you are using the same graph implementation on the desktop and on android. If all was successful 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

  • A memory bound a* algoritm is not yet implemented. Let me know if you need this!

Example

Areas as large as Berlin (and even whole Bavaria) already work: simple routing

Clone this wiki locally