Mountain Doodles

spare time data, analysis, visualization

Jane Jacobs’ Vancouver

| Comments

Some time ago I saw Geoff Boeing’s excellent package to generate Jane Jacobs style street grid images. It’s lots of fun to compare different cities that way.

It can be hard to represent one city by one square mile, so I thought it would be neat to use this to compare different parts of Vancouver. Some common themes emerge for the central parts, the more outlying areas display very differnet patterns.

So I dropped a couple of points on a map, downloaded the geojson and ran the script below. These are the results:


West End

Grandview Woodlands


North Vancouver

New West




West Vancouver


Port Moody

If you want to make your own, just grab the lightly adapted code below. Yes, it is that easy.

Code to generate the images

import geojson
import osmnx as ox
from IPython.display import Image
ox.config(log_file=True, log_console=True, use_cache=True)

img_folder = 'images'
extension = 'png'
size = 350
dpi = 90

for city in cities.features:
    place =['name']
    point = (city.geometry.coordinates[1],city.geometry.coordinates[0])
    fig, ax = ox.plot_figure_ground(point=point, filename=place)
    Image('{}/{}.{}'.format(img_folder, place, extension), height=size, width=size)