I have a database contains 5000 building approx, I want to locate them through its address, so I use GeoPy like this:
def getLalo(address):
geolocator = Nominatim()
location = geolocator.geocode(address)
if location == None:
return [0,0]
return [location.latitude,location.longitude]
bmk['latitude'], bmk['longitude']= bmk.apply(lambda row: getLalo(row['full_address']), axis=1)
However, seems like I got GeocoderServiceError: HTTP Error 429: Too Many Requests
How do I avoid this? thx!