You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+1-21
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,7 @@
1
1
## Update to MapLibre Navigation SDK for Android
2
2
3
3
We recommend that you use the successor of the GraphHopper Navigation SDK, which is the [MapLibre Navigation SDK](https://github.com/maplibre/maplibre-navigation-android).
4
-
5
-
To build an example with MapLibre follow these steps:
6
-
7
-
1. Download IntelliJ with Android support (or IntelliJ Ultimate)
3. Open the downloaded project in IntelliJ (this might take a while as it loads the dependencies)
10
-
4. In app/src/main/res/values/developer-config.xml (created while the build) replace two lines with 'base_url' and 'mapbox_access_token' and set the correct GraphHopper GH_API_KEY:
5. Additionally to the routing (provided by GraphHopper) you need a map tiles API from a different provider. In the same developer-config.xml enter the style URLs for e.g. mapilion:
6. In NavigationUIActivity for NavigationRoute.builder uncomment `this.user("gh")` and `this.profile("car")`. (Do the same in the example "MockNavigationActivity".)
21
-
7. You can now run the application on your Android device from IntelliJ (connect your device and a green triangle near your device name will show up)
22
-
8. Click "Navigation UI" where it should show your location as a gray circle.
23
-
9. Tap on the map to add a destination. It will now show the route on the map and a "Start Route" button will appear.
24
-
10. Click the "Start Route" button and the turn by turn navigation will start.
4
+
An example where GraphHopper routing is integration is available [here](https://github.com/graphhopper/graphhopper-navigation-example).
0 commit comments