dongmu1989 2014-03-06 04:50 采纳率: 0%
浏览 43
已采纳

用户使用调制解调器时获取用户地理位置

I have an application that detect user's positions, uses geolocation and show it in map (google maps API)

The application work properly when user using wifi, it show user's current positions but if the user using modem,the application show isp's (Internet service provider) position not the current user's position...

How i can solved this? anysolutions? thanks before..

  • 写回答

1条回答 默认 最新

  • duancheng3042 2014-03-06 05:02
    关注

    Sorry, but it's not possible to get 100% guaranteed result. BTW, when the user is connected via Wifi you are potentially detecting the location of the cell phone tower and/or upstream provider, but in your test case it may just happen to be in the nearby vicinity so it appears to be working, whereas with the modem it communicates all the way back to the phone provider which is clearly not nearby.

    The best you can do is check the accuracy of the geocoordinates you are receiving and provide a message to the user instructing them to ensure their hardware GPS is enabled. The operating system receives the request for geo-location and depending on user settings it will determine geo-location using ISP, WIFI, or true GPS. Best of luck.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog