Skip to content

GraphHopper Navigation Example using the Maplibre Android SDK

License

Notifications You must be signed in to change notification settings

graphhopper/graphhopper-navigation-example

Repository files navigation

GraphHopper Navigation Example for Android

Use the GraphHopper Directions API with the Maplibre Navigation SDK for Android.

With this SDK you can implement turn-by-turn navigation in your own Android app while using GraphHopper for the routing and a map tile service like MapTiler for the map visualization.

MapLibre Navigation Android

Getting Started

  1. download IntelliJ with Android Support and open this repository
  2. go to app/src/main/res/value/developer-config.xml and..
  3. replace the GraphHopper API key to make the routing working (do not forget to prefix the GraphHopper API key with pk.)
  4. replace the map tiles API URL to make the map visible
  5. enable GPS location
  6. start the app and click "Navigation UI"
  7. you will see a gray circle for your current location. Tap on screen to set the destination
  8. Now a button "Start Route" will appear. Click it and the navigation panel will appear

Legacy

To find the old example that uses the old GraphHopper SDK have a look here.

License

This code was forked from Maplibre. It stands under the same license as the Maplibre SDK, i.e. MIT License.