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 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝