Answer the question
In order to leave comments, you need to log in
How to determine the location of the user and the source through which it was found (gps, wifi, ip)?
Good afternoon everyone!
Task: It is necessary to implement a service for determining the user's location from the browser, it is necessary to determine the data source, that is, where were the coordinates obtained from (gps, wifi, or ip)?
In principle, obtaining coordinates is not a problem (HTML5 geolocation API, yandex api geolocation);
Question: How to get information about the source, determine how the data was received. By gps, wifi or ip?
Is it possible to implement this? If anyone has encountered this kind of problem, I would be glad to advice.
Thanks in advance :)
Answer the question
In order to leave comments, you need to log in
It is better not to determine exactly by ip.
In general, ip, I think the thing is not for location.
Different databases show the same ip to other regions and this can be easily understood.
For example, I bought a laptop and used it for a week in Moscow, then switched to St. Petersburg.
Most of the databases will show that I am in Moscow...
I hope you understand what the point is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question