I want to get the current location (in views.py) without having to use the IP to determine (because it's incorrect)
Asked
Active
Viewed 44 times
1 Answers
0
what about using the W3C Geolocation Api? It seems that it provides reliable location information, though INDIRECTLY, through cross-validation with local providers such as the WiFi network and so on. https://en.wikipedia.org/wiki/W3C_Geolocation_API

python kindergarden developer
- 48
- 1
- 14
-
1How directly or indirectly it is depends on the client. It *may* use super accurate GPS. Either way itβs not [tag:python] though. β deceze Apr 11 '20 at 08:11
-
I want to wirte code in views, not write script in html β duy do Apr 11 '20 at 11:18
-
@duydo Then the IP is all you can possibly use. β deceze Apr 11 '20 at 12:45