开发者

Location Services? Detecting your location

开发者 https://www.devze.com 2023-01-23 18:19 出处:网络
I\'d like to get a stronger idea of ho开发者_Go百科w websites like http://www.msn.com/ can detect where you are. I know that you can do this by IP, but that can be extremely inaccurate depending on yo

I'd like to get a stronger idea of ho开发者_Go百科w websites like http://www.msn.com/ can detect where you are. I know that you can do this by IP, but that can be extremely inaccurate depending on your ISP.

What is the most accurate method of doing this on the web?


The ways you can do this, in descending order of accuracy:

  1. Geolocation API (requires user to have compatible browser and give explicit permission)
  2. Profiling data from advertising network.
  3. IP Geolocation (Free versions tend to be very inaccurate, you can pay for slightly more accurate data)
  4. User entered data.
0

精彩评论

暂无评论...
验证码 换一张
取 消