Repo for non destructive e-scooter intervention materials
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 lines
475 B

import folium
import requests
import json
#import scooter data
with open('1scooter.json') as file:
data = json.load(file)
lat = data['data']['attributes']['lat']
lng = data['data']['attributes']['lng']
#create map object
m = folium.Map(location=[lat, lng], zoom_start=15)
#create markers
folium.Marker([lat,lng],
popup='<strong>Berghain<strong/>',
tooltip='ja was isch jetzt aus des?',
icon=folium.Icon(icon='cloud')).add_to(m)
#generate map.html
m.save('map.html')