Skip to content

Commit c32347f

Browse files
committed
sort stop points in places free access
1 parent 6b9ed71 commit c32347f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/jormungandr/jormungandr/scenarios/helper_classes/places_free_access.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ def __init__(self, future_manager, instance, requested_place_obj, pt_planner_nam
6464
@new_relic.distributedEvent("get_stop_points_for_stop_area", "places")
6565
def _get_stop_points_for_stop_area(self, uri):
6666
with timed_logger(self._logger, 'stop_points_for_stop_area_calling_external_service', self._request_id):
67-
return self._instance.georef.get_stop_points_for_stop_area(uri, self._request_id)
67+
stop_points = self._instance.georef.get_stop_points_for_stop_area(uri, self._request_id)
68+
return sorted(stop_points, key=lambda p: p[0])
6869

6970
@new_relic.distributedEvent("get_odt_stop_points", "places")
7071
def _get_odt_stop_points(self, coord):

0 commit comments

Comments
 (0)