https://github.com/graphhopper/graphhopper-navigation-example
GraphHopper Navigation Example using the Maplibre Android SDK
https://github.com/graphhopper/graphhopper-navigation-example
android graphhopper maplibre navigation openstreetmap
Last synced: about 1 year ago
JSON representation
GraphHopper Navigation Example using the Maplibre Android SDK
- Host: GitHub
- URL: https://github.com/graphhopper/graphhopper-navigation-example
- Owner: graphhopper
- License: mit
- Created: 2023-11-25T19:04:11.000Z (over 2 years ago)
- Default Branch: graphhopper
- Last Pushed: 2024-01-29T16:52:24.000Z (over 2 years ago)
- Last Synced: 2025-04-06T17:06:36.781Z (about 1 year ago)
- Topics: android, graphhopper, maplibre, navigation, openstreetmap
- Language: Kotlin
- Homepage:
- Size: 11.7 MB
- Stars: 30
- Watchers: 3
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# GraphHopper Navigation Example for Android
Use the GraphHopper Directions API with the [Maplibre Navigation SDK for Android](https://github.com/maplibre/maplibre-navigation-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.
## 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](https://github.com/graphhopper/graphhopper-navigation-example-legacy).
## License
This code was forked from Maplibre. It stands under the [same license as the Maplibre SDK](https://github.com/maplibre/maplibre-navigation-android#license), i.e. MIT License.