python - How to make geopy requests? -
i have csv file few thousands of addresses, , want use geopy respective coordinates.
using code right coordinates
import pandas pd geopy.geocoders import nominatim geolocator = nominatim() geolocator = nominatim() location = geolocator.geocode(some_address)
so have function:
def get_geo(address): location = geolocator.geocode(address) return location.latitude, location.longitude df['address'].apply(get_geo)
but when try used list more 2 two requests error?
geocoderunavailable: service not available
Comments
Post a Comment