excel - 带有 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 文件中工作。
起初它似乎有效,但不再有效。我错过了什么吗?
解决方案
推荐阅读
- php - 用于付款的 PayPal 自定义表单,而不是默认的弹出窗口
- java - java 加密密码的默认 AES 长度
- php - ResetPasswords.php Laravel 8 中的错误
- javascript - 将 Django 从 2.1 升级到 3 时,Django 管理中的文件字段不显示
- google-chrome - 在 Firefox 或 chrome 中禁用 Ctrl+n
- c - 为什么给定的 C 代码不能正常运行?
- java - java中非括号和括号有什么区别?
- r - 闭包的R错误对象不可子集
- php - 如何为 html 元素提供一个从 php 变量中获取的 ID?
- c# - 如何让我的 MSTest 像在我“升级”到新型项目文件之前那样在 Visual Studio 中实际运行?