From bb6ded3ca7151ac3e4e1001cd7cda5a66eb9dd87 Mon Sep 17 00:00:00 2001 From: Holger Bruch Date: Tue, 6 Feb 2024 18:25:21 +0100 Subject: [PATCH] add car profile to gh request --- amarillo/services/routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amarillo/services/routing.py b/amarillo/services/routing.py index fbf8e02..3fc56dd 100644 --- a/amarillo/services/routing.py +++ b/amarillo/services/routing.py @@ -21,7 +21,7 @@ def path_for_stops(self, points): else: return {} - def _get_directions(self, points): +def _get_directions(self, points): req_url = self._create_url(points, True, True) logger.debug("Get directions via: {}".format(req_url)) response = requests.get(req_url) @@ -43,5 +43,5 @@ def _create_url(self, points, calc_points = False, instructions = False): for point in points: locations += "point={0}%2C{1}&".format(point.y, point.x) - return "{0}/route?{1}instructions={2}&calc_points={3}&points_encoded=false".format( + return "{0}/route?{1}instructions={2}&calc_points={3}&points_encoded=false&profile=car".format( self.gh_service_url, locations, instructions, calc_points)