Skip to content

Commit

Permalink
add car profile to gh request
Browse files Browse the repository at this point in the history
  • Loading branch information
hbruch committed Feb 6, 2024
1 parent 760271b commit bb6ded3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amarillo/services/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)

0 comments on commit bb6ded3

Please sign in to comment.