mapbox / mapbox/mapbox-navigation-android

How to prefetch routing tiles?

Open
#3,840 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

archived question
Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

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](https://blog.mapbox.com/cut-fleet-data-bills-with-hybrid-online-offline-routing-5b10ee4bfa76) 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](https://user-images.githubusercontent.com/26496306/100844215-8fb03180-34a1-11eb-9501-b9559feec568.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the issue's OfflineManager example and the linked offline-capabilities blog post. Investigate whether the navigation SDK exposes routing-tile prefetching beyond map tiles and whether any documentation or examples cover it. Done means documenting a supported workflow or clearly recording that prefetching is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.