gpt4 book ai didi

javascript - 谷歌地图 : render map based on street address

转载 作者:行者123 更新时间:2023-11-28 09:21:41 24 4
gpt4 key购买 nike

我以为会很简单,没想到。我的网站上有用户个人资料,每个个人资料都有一个街道地址(格式:1234 Some Street、城市、州、邮政编码)。

我想根据该信息(不是经度和纬度...)在页面上添加小 map 。

有一个插件可以完成这个简单的任务吗?阅读谷歌文档是一件令人头疼的事情,而且似乎让这个简单的任务比它需要的要困难得多。

编辑:我想要那个 javascript map ,而不是静态的

最佳答案

Geocoding API可能就是您正在寻找的。

Geocoding is the process of converting addresses (like "1600 Amphitheatre Parkway, Mountain View, CA") into geographic coordinates (like latitude 37.423021 and longitude -122.083739), which you can use to place markers or position the map.

...

The Google Maps API provides a geocoder class for geocoding and reverse geocoding dynamically from user input.

关于javascript - 谷歌地图 : render map based on street address,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14924485/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com