def get_coordinates(location): geolocator = GoogleV3() target = geolocator.geocode(location) return {'lat': str(target.latitude), 'long': str(target.longitude)}