From 0c061ab4ed02a624ce404afd19ed02030afc5d45 Mon Sep 17 00:00:00 2001 From: Adam Vajda Date: Sat, 9 Dec 2023 03:40:18 +0100 Subject: [PATCH] fix --- common/bkk_api/bkk_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/bkk_api/bkk_api.py b/common/bkk_api/bkk_api.py index 9319b19..a0b83e7 100644 --- a/common/bkk_api/bkk_api.py +++ b/common/bkk_api/bkk_api.py @@ -66,7 +66,7 @@ def find_shortest_route_time(lat1, lon1, lat2, lon2): gmaps = googlemaps.Client(key=os.environ['NEXT_PUBLIC_MAP_API_KEY']) try: - directions_result = gmaps.directions(origin, destination, mode="walking") + directions_result = gmaps.directions(location1, location2, mode="walking") print(directions_result)