bramus / react-native-maps-directions

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

Allow override method to get Directions Api data #169

Open DeniferSantiago opened 3 years ago

DeniferSantiago commented 3 years ago

I propose that a method can be passed that returns the Directions Api data, this will allow data to be provided from the state of an application or from a query to the database. What would decrease the number of calls made to the API. Although I have not analyzed the code completely, perhaps the method that should be allowed override is fetchRoute.