背景:我正在尝试使用Bing Maps或Google Maps计算两个地点之间的距离。
这里有一个电子表格,演示了我想要做的事情:
https://drive.google.com/file/d/1TsmIPDUrCOkScNqPmiVrYVXb1SRzP9Vl/view?usp=sharing
我希望从一个函数中返回一个响应结果(在Google Sheets中与Excel中的WEBSERVICE函数相同),该函数调用一个dev.virtualearth.net URL进行查询,例如以下URL:
https://dev.virtualearth.net/REST/v1/Locations?countryRegion=New Zealand&adminDistrict=Wellington&locality=Johnsonville&postalCode=6037&addressLine=Bassett Rd&maxResults=1&o=xml&key=ArTkC_A3xj__NuzbJVV2Lq9oo8sftT1r9peJOlYpWVdvTJWDzn1HBq22A48Pn9W-0
我可以看到有像IMPORTDATA、IMPORTXML这样的函数,但它们的工作方式与Excel中的WEBSERVICE函数不完全相同。
我还需要一个等效的FILTERXML函数。
https://dev.virtualearth.net/REST/v1/Locations?countryRegion=New Zealand&adminDistrict=Wellington&locality=Johnsonville&postalCode=6037&addressLine=Bassett Rd&maxResults=1&o=xml&key=###
是您期望的样本输入值吗?如果是这样的话,您能提供一下您期望的样本输出值吗? - Tanaikehttps://dev.virtualearth.net/REST/v1/Locations?countryRegion=New Zealand&adminDistrict=Wellington&locality=Johnsonville&postalCode=6037&addressLine=Bassett Rd&maxResults=1&o=xml&key=###
时,您能提供此URL的示例输出以及您想要检索的值吗? - Tanaike