mapbox / mapbox/mapbox-directions-swift

Convert from GPX to RouteOptions and MatchOptions

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

Nobody has claimed this yet.

improvement map matching
Dominant language
Swift
Stars
206
Forks
99
Avg merge
7h 54m
Merged PRs (30d)
3

Description

The GPX file format is used by Xcode for various things like route simulation and declaring compatible regions. It’s quite handy to stick a GPX trace in Wormhole and enable route simulation to test on-device behavior. For improved compatibility, RouteOptions and MatchOptions could have an initializer that takes GPX data (or perhaps a GPX file URL) as an argument instead of an array of coordinates.

We could focus on the subset of GPX supported by Xcode to start out with. MatchOptions should also consider timestamps, but that requires adding a way to specify timestamps when map matching: #294.

/cc @mapbox/navigation-ios @coxchapman @danpat

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 by locating the RouteOptions and MatchOptions initializers and reviewing how coordinate arrays are currently accepted. Define the Xcode-supported GPX subset, account for the timestamp dependency described in issue #294, and verify that GPX data or a file URL can produce both option types with appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.