项目中想获取手机用户地理位置用于统计。如果用户拒绝h5访问地理位置权限,ip误差太大,那还有什么靠谱的方法?
How to obtain the geographical location of mobile Internet users? -PHP Chinese website Q&A-How to obtain the geographical location of mobile Internet users? -PHP Chinese website Q&A
Let’s take a look and learn.
在用户关闭GPS后,手机所在位置是将基站,wifi结合起来估算的,误差波动比较大(wifi其实挺准大概几十米的误差),如果是拒绝你获取位置,那就只有ip,不存在什么特殊的好方法,否则不是侵犯个人隐私了
How to obtain the geographical location of mobile Internet users? -PHP Chinese website Q&A-How to obtain the geographical location of mobile Internet users? -PHP Chinese website Q&A
Let’s take a look and learn.
在用户关闭GPS后,手机所在位置是将基站,wifi结合起来估算的,误差波动比较大(wifi其实挺准大概几十米的误差),如果是拒绝你获取位置,那就只有ip,不存在什么特殊的好方法,否则不是侵犯个人隐私了