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.
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
.