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

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -