首页 > 解决方案 > 带有 Google-directions API 的 Excel 网络服务公式

问题描述

我想从方向查询的 XML 结果中提取 Excel 文件中的数据。

我在 Excel 中使用 ServiceWeb 函数来处理这个请求:

=SERVICEWEB("https://maps.googleapis.com/maps/api/directions/xml?origin="&A4&"&destination="&B4&"&mode=driving&key=MYKEY")

A4 是原点: PlaceBastille, Paris例如,在 B4 中是目标地址: Place Bellecour, Lyon

我在 .xlsm 文件中工作。

起初它似乎有效,但不再有效。我错过了什么吗?

标签: excelvbaexcel-formulagoogle-directions-apidirections

解决方案


推荐阅读