如何链接到具有特定经度和纬度的 Google 地图? [英] How do I link to Google Maps with a particular longitude and latitude?
问题描述
我有一个提供当前位置的小应用程序:经度和纬度.现在我必须浏览带有经度和纬度的谷歌地图.请建议我如何做到这一点.
I have a small application that gives the current location: longitude and latitude. Now I have to browse to google maps with the longitude and latitude. Please suggest how I can do this.
推荐答案
此架构再次更改(2018 年 10 月 23 日).有关最新信息,请参阅 Kushagr 的回答.
This schema has changed again (23rd October 2018). See Kushagr's answer for the latest.
这是带有标记的地图(通过 aaronm 的评论):
This for a map with the marker (via aaronm's comment):
https://www.google.com/maps/?q=-15.623037,18.388672
对于一个较旧的例子(这个没有标记):
For an older example (no marker on this one):
https://www.google.com/maps/preview/@-15.623037,18.388672,8z
最古老的格式:
http://maps.google.com/maps?ll=-15.623037,18.388672&spn=65.61535,79.013672
这篇关于如何链接到具有特定经度和纬度的 Google 地图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!