bramus / react-native-maps-directions

Directions Component for `react-native-maps`
MIT License
1.25k stars 197 forks source link

Add prop to specify whether the directions API should return multiple routes, and if so allow for specification of which route to render. #188

Open iocuydi opened 2 years ago

iocuydi commented 2 years ago

Add "preferredRoute" prop which is passed a number indicating which route to render. No change if 0 is passed, if a number > 0 is passed, request alternate routes from API, and if enough routes are returned, render the specified one instead of the main one.

elie-chaaban commented 2 years ago

THIS SHOULD BE MERGED!!

Did you test this? it s working a 100%? i mean can we use this solution in production?