calculateSearchResultRouteInfo
Calculates route information (distance and ETA) from the user's current location to a search result. Performance Note: Due to computational complexity, it's expensive to calculate accurate ETA and precise route distance. These calculations involve routing algorithms and real-time traffic data processing, which can significantly impact performance when processing multiple search results simultaneously.
Return
Result containing SearchResultRouteInfo with distance in meters and ETA in minutes, or an error if the calculation fails (e.g., no route available, location unavailable)
Parameters
The destination SearchResult for which to calculate route information
If true
, SearchResultRouteInfo.batteryPercentage would be calculated in such a way, as if the user would use charging stations along the route to not let the battery to be drained to 0.