mapbox / mapbox-navigation-android

Mapbox Navigation SDK for Android
https://docs.mapbox.com/android/navigation/overview/
Other
622 stars 319 forks source link

How to prefetch routing tiles? #3840

Open ableabhijeet opened 3 years ago

ableabhijeet commented 3 years ago

I am using latest navigation sdk

    implementation 'com.mapbox.navigation:ui:1.3.0-SNAPSHOT'
    implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:5.6.0'

Blog here talks about offline capabilities available in latest sdk.

Download Map tiles -- I know how to download map tiles. We need to create offline regions using OfflineManager

offlineManager.createOfflineRegion(
                                    definition,
                                    metadata,
                                    new OfflineManager.CreateOfflineRegionCallback() {...})

Map tiles are stored in mbgl-offline.db file. That's clear.

Question is how to download routing tiles? I couldn't find any documentation/examples.

Is it possible to prefetch routing tiles?

image

LukasPaczos commented 3 years ago

cc @etl @zugaldia @truburt @jyrigo

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.