bramus / bramus/react-native-maps-directions

React Native Map Direction avoid Highways & tolls

Open
#135 1 comment 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.3k
Forks
210
PR merge metrics
No merged PRs in 30d

Description

if any solution how to void Highway & tolls using react-native-maps-directions

this my code

` {
console.log(`Started routing between "${params.origin}" and "${params.destination}"`);

}}
onReady={result => {
console.log(`Distance: ${result.distance} km`)
console.log(`Duration: ${result.duration} min.`)
this.setState({
Dinstance: result.distance.toFixed(2),
Duration: result.duration.toFixed(2)

})


}}
/>`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the MapViewDirections component and the props shown in the issue, especially mode="TRANSIT", then check how its underlying directions request handles highway and toll avoidance. Test a route where those restrictions matter; done means the rendered route avoids the requested roads without breaking the existing origin, destination, and route callbacks.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.