DenisCarriere / permits

:construction: Construction Permits - City of Ottawa
http://deniscarriere.github.io/permits
4 stars 0 forks source link

Geo-reference Data #2

Closed DenisCarriere closed 9 years ago

DenisCarriere commented 9 years ago

Using the Street Number & Street name, convert all the dataset into a "Geo Friendly" format.

Getting started, Python example using Geocoder

>>> import geocoder
>>> street_number = "240"
>>> street_name = "ROYAL AVE"
>>> city = "Ottawa"
>>> location = "{0} {1}, {2}".format(street_number, street_name, city)
>>> g = geocoder.google(location)
>>> g.latlng
[45.3969651, -75.75829139999999]
>>> g.address
'240 Royal Avenue, Ottawa, ON K2A 1T7, Canada'