I am working on a Django project where I need to get the longitude and latitude of the current location of the user. I am using the geopy for this:
from geopy.geocoders import Nominatim
geolocator = Nominatim()
location = geolocator.geocode("175 5th Avenue NYC")
print((location.latitude, location.longitude))
But in above case, I am adding address manually, but as per my requirement I want to get address of the user automatically.