This commit is contained in:
j.mei7
2022-03-22 18:35:51 +01:00
parent 6ada69a8d0
commit 2be1030d3c
6 changed files with 394692 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

10
main.py
View File

@@ -24,13 +24,19 @@ requestUrl = "https://overpass-api.de/api/map"
requestsUrlParams = f"?bbox={minLon},{minLat},{maxLon},{maxLat}"
print(requestUrl + requestsUrlParams)
""" # ONLINE
print("Downloading OSM-File...")
# TODO Check if banned from overpass-api MAYBE get alternative API then
r = requests.get(requestUrl + requestsUrlParams, headers={'Content-Type': 'application/xml'})
print("Done: Downloading OSM-File")
osm = OSM(r.text)
"""
# Offline
print("Using offline file!")
file = open("mapHH", encoding="utf8")
osm = OSM(file.read())
pta = PublicTransportAccessibility(osm)
shops = Shops(osm)

394684
mapHH Normal file

File diff suppressed because it is too large Load Diff