Skip to content

Instantly share code, notes, and snippets.

View sjg's full-sized avatar

Steven Gray sjg

View GitHub Profile
"""
Pull Greater London Authority boundary definition (geojson) and derive the outer bounding box
"""
from operator import itemgetter
import json
import requests
r = requests.get('http://mapit.mysociety.org/area/2247.geojson')
coords = r.json()['coordinates'][0]