且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将地址转换为 Google 地图链接(非地图)

更新时间:2021-11-08 00:13:36

这个怎么样?

https://maps.google.com/?q=1200 Pennsylvania Ave SE,华盛顿哥伦比亚特区,20003 年

https://maps.google.com/?q=term

如果您有经纬度,请使用以下网址

If you have lat-long then use below URL

https://maps.google.com/?ll=latitude,longitude

示例:maps.google.com/?ll=38.882147,-76.99017

更新

截至 2017 年,Google 现在有了创建跨平台 Google 地图网址的官方方法:

As of year 2017, Google now has an official way to create cross-platform Google Maps URLs:

https://developers.google.com/maps/documentation/urls/guide

你可以使用像

https://www.google.com/maps/search/?api=1&query=1200%20Pennsylvania%20Ave%20SE%2C%20Washington%2C%20District%20of%20Columbia%2C%2020003