Intro: SlippyMapper

Kenneth Warner
Data Mining the City
1 min readOct 25, 2017
import spatialpixel.mapping.slippymapper as slippymapper
import csv
def setup():
size(1024, 512)

global newyork
newyork = slippymapper.SlippyMapper(40.7128, -74.0060, 11, 'terrain-background')
newyork.render()

with open('MTA.csv') as f:
reader = csv.reader(f)
header = reader.next()
for row in reader:
latitude = float(row[3])
longitude = float(row[4])
newyork.addMarker(latitude, longitude)
global losangeles
losangeles = slippymapper.SlippyMapper(34.0522, -118.2437, 9, 'terrain-background')
losangeles.render()
def draw():
background(255)
newyork.draw()

translate(512, 0)
losangeles.draw()

NYC Subway Entrances v. a barren Los Angeles

While Los Angeles is one of the few places in the US with funding for public transit, LA Metro still pales in comparison to MTA.

--

--