【发布时间】:2014-11-05 02:20:46
【问题描述】:
我正在开发一个使用 webview 作为前端和 xamarin mono (c#) 作为后端的项目。当我尝试 google's maps api 开发人员文档中的 html5 地理定位示例时,例如:
https://developers.google.com/maps/documentation/javascript/examples/map-geolocation
在本例中使用 html5 找到的位置显示的是市中心,而不是我的真实坐标。然而,谷歌地图 android、ios 本机应用程序(以及 yandex 应用程序)显示我在 GPS 关闭时使用 wifi 的确切坐标。我是否必须使用 android API 来获取真实坐标,或者有没有办法仅使用 javascript 来获取精确坐标?谢谢。
【问题讨论】:
标签: javascript android html google-maps geolocation