我有一个小应用程序,提供当前位置:经度和纬度。 现在我必须浏览谷歌地图的经度和纬度。 请建议我该怎么做。


当前回答

打开以下url,并显示经纬度和缩放级别。

https://maps.google.com/?q=23.22,88.32&z=8

其他回答

简单说http://www.google.com/maps/place/lat,lng格式

示例url:

http://www.google.com/maps/place/30.364124,48.227034

打开以下url,并显示经纬度和缩放级别。

https://maps.google.com/?q=23.22,88.32&z=8

截至今天(2020年11月1日),谷歌提供了一种在跨平台上非常有效的通用URL,因此谷歌推荐这种方法。

语法:https://www.google.com/maps/search/?api=1&query=<lat>,<lng>

例子: https://www.google.com/maps/search/?api=1&query=28.6139,77.2090 (印度新德里)

文档/源。

截至今天(2014/09/23),我发现要在确切的地方(不是近似值)得到标记,你可以使用:

http://www.google.com/maps/place/49.46800006494457,17.11514008755796

此外,如果你想指定地图中心和缩放:

http://www.google.com/maps/place/49.46800006494457,17.11514008755796/@49.46800006494457,17.11514008755796,17z

如果你想使用卫星地图类型,那么追加/data=!3m1!1 e3

http://www.google.com/maps/place/49.46800006494457,17.11514008755796/@49.46800006494457,17.11514008755796,17z/data=!3m1!1e3

如果你想要地形视图的地图,然后追加/data=!3m1!4 b1

https://www.google.com/maps/place/49.46800006494457,17.11514008755796/@49.46800006494457,17.11514008755796,17z/data=!3m1!4b1

这也是可行的:

https://www.google.pl/maps/@<lat>,<lon>,<zoom>z

的例子。

指针:

https://www.google.com/maps/place/<lat>,<lon>/@<lat>,<lon>,<zoom>z

的例子。