mapbox / mapbox/mapbox-directions-swift

Routing tile API v2

Open
#481 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Core jira-sync-complete op-ex platform parity
Dominant language
Swift
Stars
206
Forks
99
Avg merge
7h 54m
Merged PRs (30d)
3

Description

There’s a new version of the routing tile API that has a slightly different request URL format:

* v1: `/route-tile/v1/{tile}.gph?version=YYYY_MM_DD-HH-MM-SS`
* v2: `/route-tile/v2/{account}/{profile}/{tile_version}/{tile_id}` where _tile_version_ is in the format _YYYY_MM_DD-HH-MM-SS_ and _tile_id_ is in the format _X/XXX/XXX/XXX_

`Directions.availableVersionsURL` and `Directions.tilesURL(for:version:)` need to be updated to support this new request format, along with any changes to the response format.

/cc @mapbox/navigation-ios @kshehadeh

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 Directions.availableVersionsURL and Directions.tilesURL(for:version:) and inspect the existing routing tile request and response handling. Compare the v1 URL format with the specified v2 account, profile, tile version, and tile ID components; done means both methods and any affected response parsing support v2.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.