I played with different addresses and input params, but routes as result of calc_all_routes_info always has just one element, while I expected several (according to README.md)
routes = self.get_route(npaths, time_delta)
results = {route['routeName' if 'routeName' in route else 'route_name']: self._add_up_route(route['results' if 'results' in route else 'result'], real_time=real_time, stop_at_bounds=stop_at_bounds) for route in routes}
On line 208 variable routes as result of the API call has 2 values (as expected) but on the line 209 results has only one value, which is returned afterwards.
I'm not good in python, so I cannot understand the logic of the results calculation, but it looks strange.
I'm trying to get info about possible routes between two points
I played with different addresses and input params, but
routes
as result ofcalc_all_routes_info
always has just one element, while I expected several (according to README.md)I dig into source of of the method and found following Lines 208-209 in WazeRouteCalculator
On line 208 variable
routes
as result of the API call has 2 values (as expected) but on the line 209results
has only one value, which is returned afterwards.I'm not good in python, so I cannot understand the logic of the
results
calculation, but it looks strange.Is is an expected behavior?
Thanks in advance, for your clarification