Skip to content

Commit

Permalink
refactored routesearcher.py
Browse files Browse the repository at this point in the history
  • Loading branch information
valteu committed Apr 18, 2024
1 parent 8ff6697 commit ade4eb5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dev/routesearcher.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import requests

def get_routeData(src, dst):
#url = f"https://hackhpi24.ivo-zilkenat.de/api/trips/"
#url = f"http://localhost:3001/api/trips/"
#data = {"bounds": {"upper-left": {"lat": 40.7128,"lon": -74.006}, "lower-right": {"lat": 40.7128,"lon": -74.006}}}
prequel = 'https://v6.vbb.transport.rest/journeys?'
url = f'{prequel}from={src}&to={dst}&polylines=true&subStops=false&entrances=false&remarks=false&results=1'
response = requests.get(url)
Expand All @@ -13,4 +10,4 @@ def get_routeData(src, dst):
print(f"Failed to get data, status code: {response.status_code}")

coords = get_routeData(900230103, 900230088)
print(coords)
print(coords)

0 comments on commit ade4eb5

Please sign in to comment.