mirror of
				https://github.com/DerTyp7/local-analyzer-python.git
				synced 2025-10-29 20:42:09 +01:00 
			
		
		
		
	added comment
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										7
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								main.py
									
									
									
									
									
								
							| @@ -1,9 +1,9 @@ | |||||||
| from osm import OSM | from osm import OSM | ||||||
| from publicTransport import PublicTransportAccessibility | from publicTransport import PublicTransportAccessibility | ||||||
| import requests | import requests | ||||||
|  | # bhv 53.51500036203292, 8.603602165157444 | ||||||
| lon = 7.1484281 # 8.6039883 | lon = 8.603602165157444 # 8.6039883 | ||||||
| lat = 51.2559108  # 52.51608 | lat = 53.51500036203292  # 52.51608 | ||||||
|  |  | ||||||
| # TODO Get real value based on a metric radius | # TODO Get real value based on a metric radius | ||||||
| areaHeightRadius = 0.01 # 0.01 | areaHeightRadius = 0.01 # 0.01 | ||||||
| @@ -21,6 +21,7 @@ requestsUrlParams = f"?bbox={minLon},{minLat},{maxLon},{maxLat}" | |||||||
| print(requestUrl + requestsUrlParams) | print(requestUrl + requestsUrlParams) | ||||||
|  |  | ||||||
| print("Downloading OSM-File...") | print("Downloading OSM-File...") | ||||||
|  | # TODO Check if banned from overpass-api  | ||||||
| r = requests.get(requestUrl + requestsUrlParams, headers={'Content-Type': 'application/xml'}) | r = requests.get(requestUrl + requestsUrlParams, headers={'Content-Type': 'application/xml'}) | ||||||
| print("Done: Downloading OSM-File") | print("Done: Downloading OSM-File") | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 j.mei7
					j.mei7