mapbox / mapbox/mapbox-gl-directions

Totally exclude ferries instead of avoiding them

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

Nobody has claimed this yet.

auto-triaged enhancement
Dominant language
JavaScript
Stars
255
Forks
130
PR merge metrics
No merged PRs in 30d

Description

It seems using `exclude=ferry` parameter, this leads to avoiding them rather than totally excluding them (i.e. I'd like to not have any proposed route in response, instead of preferring the ones without ferries if available).

An example of it is trying to query London to Dublin, or Paris to Guernesey. Mapbox still returns routes, rather than excluding them (although obviously there's no way to avoid ferries on these routes).

Is there a way, either through the API, either through filtering proposed routes, to remove this results ?

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 London–Dublin and Paris–Guernsey examples and inspect how the Directions API or proposed-route filtering handles `exclude=ferry`. Determine whether ferry routes can be removed after the response or whether the API must change; done means requests using this option return no route that requires a ferry.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.