【问题标题】:Get the current location on android into the maps app via an html link通过 html 链接将 android 上的当前位置获取到地图应用程序中
【发布时间】:2011-02-28 20:51:46
【问题描述】:

在 iPhone 上,您可以将“当前位置”放入谷歌地图应用程序的开始字段,以从您当前位置开始路线。 android上有类似的吗?

【问题讨论】:

    标签: android html google-maps geolocation gps


    【解决方案1】:

    如果您已经有了坐标(通过查询 gsp),您可以执行 MapController.animateTo(GeoPoint) 将您的应用程序定位到您当前的位置。这是您的问题还是您想知道如何从 gps 获取坐标?

    【讨论】:

    • 我的意思是网页上的链接
    • 他的意思是,在 iphone 上你可以只使用maps.google.com/maps?saddr=Current Location&daddr=3333 Some Address 33331。这在 Android 上不适用于当前位置。有没有类似的?
    • maps.google.com/maps?q=33.33,-111.11 - 在导航器对象上使用 javascript 获取坐标。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-06-29
    • 1970-01-01
    • 2014-07-12
    • 1970-01-01
    • 1970-01-01
    • 2012-11-26
    • 2018-06-05
    相关资源
    最近更新 更多