mapbox / mapbox/mapbox-directions.js

Mapbox directions API using own route

Open
#118 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
58
Forks
21
PR merge metrics
No merged PRs in 30d

Description

I'm trying to make a react-native application for cyclists; I have some routes (coordinates) in a separate file that the cyclist can use.

I need to make Direction API requests that are bounded to those routes.

I know I can add waypoints to a request, but those would be "required" stops in the route. I need the API to use the waypoints as some references of "ideal" waypoints.

For example, in the image, the lines in red are the one I have stored, and the purple line is the Directions given by the API. I would like the API to use the circled stretch instead.

Is it possible to do it with Mapbox API or any other way? can I use any other tool for generating the route I need?

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

The issue names no repository file, test, or entry point; start with the Mapbox Directions API behavior for coordinates and waypoints described here. Determine whether stored coordinates can act as non-required route references, and consider the stated alternative-tool question. Done means documenting a supported approach or a clear limitation and alternative.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
api, mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.