mapbox / mapbox/mapbox-navigation-ios

[Bug]: Directions API

Open
#4,289 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
918
Forks
326
Avg merge
1h 16m
Merged PRs (30d)
3

Description

### Mapbox Navigation SDK version

2.8.0

### Steps to reproduce

1. Configure an outdoor NavigationMapView map using the following [parameters](https://docs.mapbox.com/api/navigation/directions/#optional-parameters-for-the-mapboxwalking-profile): `URLQueryItem(name: "walkway_bias", value: "1.0")`
2. When configuring `RouteOptions` for `NavigationMapView` set `walking` profile identifier.
3. Try to calculate the route between two points in a location with variety if hiking trails & bigger car roads.

### Expected behavior

Because the `walkway_bias` is set to 1 the route calculation should prefer walking trails more, so it should favour them instead of bigger car roads.

### Actual behavior

Navigation looks to optimize the time vs building a route including hiking trails. The calculated route almost always is build along bigger car roads.

Is there a way to force Navigation SDK to give preference to hiking trails in route calculation?

### Is this a one-time issue or a repeatable issue?

repeatable

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 reproducing the issue with Navigation SDK 2.8.0, an outdoor NavigationMapView, the walking profile, and the walkway_bias URLQueryItem described above. Compare the calculated route across areas with hiking trails and larger roads; the investigation is done when the SDK's handling of walkway_bias is explained or corrected and the reported preference is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
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.