How to Get the exact address location like google map tracker with python/django

792 views Asked by At

I've tried to get the location by ip address..but result is wrong..

I'm trying to make a django website..there will be a form field for users current address...and they will just click the location icon...then there current address will set to the value of that field...like google maps...

    import requests

    res = requests.get("https://ipinfo.io/")

    data = res.json()
    print(data)

I want to know location like this: Food panda Location Tracker

Google location Tracker

1

There are 1 answers

0
codelover On

This will help you to get the location from the user https://docs.djangoproject.com/en/1.11/ref/contrib/gis/geoip/ , Generally in desktop you can get the location from the IP address.