【前言】
环境:触屏版
要求:城市准确即可
性能:首页默认定位,那必然性能要求不能太差
【问题】
目前新站点使用的IP定位,偶尔就有其他城市冒出来出来说自己定位不准,但我偶尔有看到一些不错的网站,使用IP定位也是挺准的。
这该如何拿捏标准!?
我认为两者,
【IP定位】
(1)用户无感知
(2)性能较好于H5+微信定位
【H5定位+微信定位】
(1)用户禁止授权则直接失败
(2)性能差,要经过好几道工序,尤其微信定位。
(3)H5兼容性问题,不少机型直接就是定位失败或者连发起询问都不成功
因此想问问大家有什么好的建议和解决方案,这问题解决我很久了,感谢!
The most accurate positioning is to use GPS instead of IP and H5 positioning. In fact, these two positioning methods are implemented through the network, and there are still errors.
There are only three positioning situations: IP, base station (WIFI), and GPS. As an H5 page, the only thing you can choose is IP for positioning. Others require system permissions, and you can’t do anything about the data the system gives you.
How can IP positioning be accurate??
If the mobile network passes through base stations, then it is impossible to determine which base station I am connected to and where the base station is.
If it is a wifi network, the IP operator will allocate it randomly
If you want to accurately and honestly use WeChat positioning, it’s not too troublesome