Fire Eagle and Shapely
Fire Eagle GeoJSON is fixed. Shapely is great for doing things with your data.
>>> import simplejson >>> data = simplejson.loads(json) >>> from shapely.geometry import asShape >>> for location in data['user']['location_hierarchy']: ... print location['name'] ... print asShape(location['geometry']).wkt ... 600 N Sherwood St, Fort Collins, CO POINT (-105.0842514037999962 40.5944633483999979) Fort Collins, CO POLYGON ((-105.1527862548999934 40.4800186156999970, -104.9821014404000010 40.4 800186156999970, -104.9821014404000010 40.6392784119000012, -105.152786254899993 4 40.6392784119000012, -105.1527862548999934 40.4800186156999970)) Colorado POLYGON ((-109.0602493285999941 36.9923210143999981, -102.0415573119999948 36.9 923210143999981, -102.0415573119999948 41.0033493042000003, -109.060249328599994 1 41.0033493042000003, -109.0602493285999941 36.9923210143999981)) United States POLYGON ((-167.2764129638999862 18.9108390807999989, -66.6879425048999934 18.91 08390807999989, -66.6879425048999934 72.8960571288999972, -167.2764129638999862 72.8960571288999972, -167.2764129638999862 18.9108390807999989))
The Fire Eagle tutorial app is also a neat introduction to OAuth.