有没有办法用谷歌地图获取一个区域的多边形。
如果我在 maps.google.com 上搜索 Uruguay, Artigas,我会看到谷歌地图上定义的多边形。我只想知道是否有任何方法可以将该多边形作为多边形字符串,例如:
POLYGON((-30.721177988787208 -57.799072265625,-30.74006522890486 -57.6947021484375,-30.83444587394299 -57.557373046875,-30.82501197883239 -57.4639892578125,-30.914596532660827 -57.3486328125,-30.914596532660827 -57.293701171875,-30.94286898846197 -57.23876953125,-31.0182213150299 -57.1673583984375,-31.04646309161982 -57.073974609375,-31.0182213150299 -56.9805908203125,-31.037050096684133 -56.75537109375,-31.013513538113187 -56.6619873046875,-30.919309189078987 -56.44775390625,-30.88160143916058 -56.4312744140625,-30.843878841917167 -56.3983154296875,-30.89574358586453 -56.304931640625,-30.92873380543503 -56.129150390625,-30.985261993549237 -56.1346435546875,-31.065286288898154 -55.997314453125,-30.89574358586453 -56.019287109375,-30.853310882590385 -55.986328125,-30.7542282296686 -56.0577392578125,-30.688116414784933 -56.1566162109375,-30.607776881823785 -56.1895751953125,-30.522638797984513 -56.2994384765625,-30.454444979419478 -56.39127731323242,-30.42965556740803 -56.41556739807129,-30.38620340463919 -56.456851959228516,-30.281009229934632 -56.612548828125,-30.20982806645406 -56.6400146484375,-30.138595376973615 -56.7828369140625,-30.086325365908422 -56.810302734375,-30.07681875693942 -56.9036865234375,-30.110087890214736 -56.93115234375,-30.08157217563409 -57.01904296875,-30.0910783277407 -57.0904541015625,-30.21932186689575 -57.183837890625,-30.252542952311455 -57.161865234375,-30.27626542352284 -57.249755859375,-30.257287905035867 -57.32666015625,-30.295239273123176 -57.403564453125,-30.266777122804427 -57.4749755859375,-30.281009229934632 -57.5189208984375,-30.243052359289663 -57.568359375,-30.176592552395444 -57.601318359375,-30.176592552395444 -57.6617431640625,-30.252542952311455 -57.6177978515625,-30.361618834464707 -57.645263671875,-30.503709081429662 -57.8924560546875,-30.593592390615303 -57.8924560546875,-30.64086594941738 -57.8485107421875,-30.721177988787208 -57.799072265625))
我进行了很多搜索,但在 Google Maps Api 上没有看到任何参考,而 StackOverflow 上的类似搜索为美国国家提供了解决方案,但我需要来自一个不太受欢迎的国家(乌拉圭)
除了自己创建多边形(这是我目前正在做的)之外的任何方向都会有所帮助。