Skip to content

Releases: maplibre/maplibre-navigation-android

4.0.0

09 Nov 18:08
a2bd817
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.0.1...4.0.0

3.0.1

07 Nov 16:28
db2b3c2
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 3.0.0...3.0.1

3.0.0

05 Nov 14:18
Compare
Choose a tag to compare

What's Changed

  • BREAKING CHANGES:
    • The navigation models DirectionsResponse and the classes used within this class have been moved the Maplibre-Java to the navigation-core. So the core does not need a dependency to the outdated Maplibre-Java dependency anymore.
    • When you pass a DirectionsResponse or DirectionsRoute to the navigation-core, please be aware that you convert it to the local model first. If you are using Mapbox or the GraphHopper navigation endpoint, you can simply use fromJson for parsing.
      • You could use something like this: com.mapbox.services.android.navigation.v5.models.DirectionsResponse.fromJson(JSON_STRING_FROM_API_RESPONSE);
    • RouteFetcher has been split to RouteFetcher and MapboxRouteFetcher. The latter is in the ui module now.
    • NavigationRoute has been moved to the ui module.
    • RouteProcessorBackgroundThread.Listener#onCheckFasterRoute was removed as this relied on parts of the RouteFetcher that don't work anymore in the core. If you need this feature, you implement this in the UI code.
      • This resulted in some smaller API changes that don't require the RouteFetcher as parameter anymore.
  • Support multiple legs by snap to route engine #77
  • Mark unused option maximumDistanceOffRoute as deprecated #65
  • Fix move-away-from-maneuver logic of OffRouteDetector #65
  • Sample app: Moved all configurations to a central place #57

    Note
    Please delete your existing app/main/res/values/developer-config.xml to generate the new one or copy following content to your existing file:

    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <!-- Your navigation base url (example: https://api.mapbox.com) (-->
        <string name="base_url" translatable="false">https://api.mapbox.com</string>
        <!-- Your Mapbox access token (example: pk.abc...) -->
        <string name="mapbox_access_token" translatable="false">YOUR_MAPBOX_ACCESS_TOKEN_GOES_HERE</string>
        <!-- Map tile provider for light design (example: https://api.maptiler.com/maps/basic-v2/style.json?key=...) -->
        <string name="map_style_light" translatable="false"></string>
        <!-- Map tile provider for dark design (example: "https://api.maptiler.com/maps/basic-v2-dark/style.json?key=...) -->
        <string name="map_style_dark" translatable="false"></string>
    </resources>
  • Fix memory leak in Navigation Service
  • Only progress the user along the step / route if the user is close to the route (currently 1km), #75
  • Compatibility fixes for API 34 #90
  • When setting a new route or advancing to the next leg, we reset the currentLegAnnotation in NavigationRouteProcessor, fixes legs don't reset on rerouting.
  • Make sure step distance remaining is set correctly before first routeProgress is calculated, only calculate maneuverCompletion when routeProgress is set. This fixes annotation Index set to wrong values

New Contributors

Full Changelog: 2.0.0...3.0.0

2.0.0

21 Mar 20:02
19d7429
Compare
Choose a tag to compare
  • Initial release of Navigation UI package.
  • We adapted Navigation module (mostly RouteFetcher) to be aligned with the implementation we need in the Navigation-UI package.
  • Move Style-Url, Routing-Url and Access-Token to NavigationSettings in sample app.
  • Remove unused code (mostly Mapbox Speech Service related classes).
  • Updated Maplibre version to v10.0.2.
  • Incremented minSdk version from 15 to 21 to work same as maplibre implementation.
  • Created custom classes for GoogleLocationEngineImpl, Utils, LocationEngineProvider which were removed from default implementation maplibre to provide working with GSM location.
  • Corrected resource calls due to renamed res files in maplibre (from mapbox_ to maplibre_).
  • All changes are included in this pull request 49
  • Updated dependencies of used libs and build tools
  • Removed AccessToken usage
  • Fixed Jitpack Build
  • Use the navigation options instead of constants in ToleranceUtils (used in the offroute detection), if you haven't modified rerouting values in the navigation options, nothing should change

1.2.0

21 Nov 18:09
998eac9
Compare
Choose a tag to compare
  • Fixed unit tests and updated some build dependencies.
  • Added Flags for pending intents which are required in Android 31+
  • Added an action name to pending intent to identify it externally

1.1.1

21 Oct 10:14
Compare
Choose a tag to compare

1.0.9

01 Dec 09:35
Compare
Choose a tag to compare

Updated map sdk version

1.0.7

13 Oct 12:24
Compare
Choose a tag to compare

Removed some more telemetry events after finding out events.mapbox.com is still called after disabling telemetry. Hoping this helps.

1.0.6

16 Sep 08:10
64b1d3d
Compare
Choose a tag to compare
Merge pull request #9 from flitsmeister/develop

Merge the latest changes into master