MapTrip SDK Quick UI
Info
MapTrip SDK Quick UI is still in active development and interfaces may change. We are excited to share it already with you and are looking forward to your feedback.
About
The MapTrip SDK Quick UI library enables you to quickly set up a navigation view on top of the MapTrip SDK in your own application. It provides a Fragment to wrap the most common use cases for a navigation app.

Features
- Route information: remaining distance, remaining time, estimated time of arrival
- Next instruction: direction and remaining distance
- Display of current speed limit
- Voice guidance with TextToSpeech or prerecorded audio files
- Automatic toogle between day and night mode
- Resume to location tracking button
- Display of POI: Traffic events & Speed cams
- Display of Traffic flow
Requirements
- The SDK is integrated
- You added a map
- You learned how to calculate a route
- Your App requires an Android API level of 21 at least (minSdkVersion)
- Your Android Studio IDE (or IntelliJ IDEA) version is 2021.2.1 or newer
Add the dependency
- Modify app/build.gradle to add the build rule additionally to the MapTrip SDK:
1 2 | |
Integrate the QuickUiFragment
After adding a map you will need to add a FragmentContainerView to your layout.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | |
As demonstrated in the Navigation example you will now need to calculate a route. Next, you can create an Instance of QuickUiFragment. The required parameters can be passed by an instance of QuickUiOptions. Please open the fragment from your UI thread specifically. The result of the task will be in the SDK Runtime Thread.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | |
The QuickUiFragment handles the start of the navigation and reaching the destination automatically. If the destination is reached, the fragment will be closed.
Attention
Currently, only itineraries with one destination waypoint are supported.