gpt4 book ai didi

google-maps - 将 "Search Area"轮廓添加到谷歌地图结果中

转载 作者:行者123 更新时间:2023-11-28 09:06:58 25 4
gpt4 key购买 nike

去年,Google 在其产品中添加了搜索区域轮廓,正如许多地方所报道的那样,并且在 Google map 本身上可见。例如here ,并报告herehere .

明确地说,这是谷歌添加与搜索查询相关的大纲的时候。如果您要搜索城镇、邮政编码或邮政编码,Google 将突出显示 map 上的该区域。示例:

90210 Search on Google Maps

这显然无法通过 API 获得,只能通过 Google 自己的网络属性获得。

最近,我注意到其他一些域也在使用此功能,例如 Twitter .

Twitter 和其他大型组织是否正在使用单独的 API?是否已添加此功能,但尚未记录?或者我只是错过了公告并且找不到任何文档?

最佳答案

由于 Maps API 尚未提供解决方案,并且手动填写坐标与任何人无关,因此这里有一个替代方案。在 GIS 网站上找到了这个答案——绝对的救星(可以节省 jurihandl 绘制卡尔加里的大量时间,上面;D):

You can get polygon coordinates in json for using with googlemaps using openstreetmap. Go to http://nominatim.openstreetmap.org/. Search a place like "San Francisco, CA"

Click on "Details"

Look for OSM ID and copy it (control+c), example: 2018776

Paste the ID http://polygons.openstreetmap.fr/index.py and download the JSON file

来源:GIS

关于google-maps - 将 "Search Area"轮廓添加到谷歌地图结果中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16920498/

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