Follow the two links to get a roughly estimated 3D model of Bucheggplatz and VBZ schedule data (originally downloaded from https://github.com/swissnexSF/Urban-Data-Challenge)
zurich vbz routes and schedules, source
bucheggplatz3D+OSLVIZ: file used to create the intro movie. open it, make a test render, switch to compositing and/or scripting layout to look at the inner workings.
Snippets:
Python and JSON files:
import json
path = “/path/to/geo/geojson/routes.json”
f = open(path)
jsn = json.load(f)
features = jsn.get(“features”)
print(features[2])
Python and CSV files:
import csv
s = “your file location”
f = open(s, ‘rt’, encoding=”utf8″)
r = csv.reader(f, delimiter=”;”)
for row in r:
print(row)
Python and amplitudes of wave files:
import wave
for i in range(w.getnframes()):
frame = w.readframes(i)
print(ord(frame[i]))
All lines of Bucheggplatz
BucheggplatzLines.py: uses pyproj: downloads and explanation here.