Skip to content

Instantly share code, notes, and snippets.

@m-mohsin-ali
Created December 26, 2021 18:10
Show Gist options
  • Save m-mohsin-ali/891c5e145ecdc585e69c2256b8c04056 to your computer and use it in GitHub Desktop.
Save m-mohsin-ali/891c5e145ecdc585e69c2256b8c04056 to your computer and use it in GitHub Desktop.
Reverse geocoding geopy
import geopy
from geopy.geocoders import Nominatim
from geopy.extra.rate_limiter import RateLimiter
locator = Nominatim(user_agent="myGeocoder", timeout=10)
#rgeocode = RateLimiter(locator.reverse, min_delay_seconds=0.001)
#df[‘address’] = df[‘latlong’].progress_apply(rgeocode)
locator.reverse('33.569297, 73.090686').raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment