Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lats = []
- lngs = []
- nv = G.nodes
- for item in nv.items():
- lats.append(item[1]['y'])
- lngs.append(item[1]['x'])
- lng_min = min(lngs)
- lat_min = min(lats)
- lng_max = max(lngs)
- lat_max = max(lats)
- bbox = [lat_min, lng_min, lat_max, lng_max]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement