def _do_google_geo(address): geo = pyGeo(GOOGLE_MAPS_KEY) results = geo.geocode(address) return Coordinate(results[0].coordinates[0], results[0].coordinates[1])
def _do_google_reverse(lat, lng): geo = pyGeo(GOOGLE_MAPS_KEY) address = geo.reverse_geocode(lat, lng) return address[0]