使用 google 地图 api 从物理地址数据集中检索一组坐标

Retrieving a set of coordinates from a dataset of physical addresses using google maps api

使用格式为 {Street}, {suburb}, {city}

的一组地址

例如:72 Victoria Street West, Auckland Central, Auckland

是否可以将 *set* 地址传递到 google 映射 api 和 return a *set*每个地址对应的经纬度?

例如上面的地址会 return [-36.8483798,174.7611771]

我知道 api 调用的默认限制是 2500。

有很多地址(+5000)我要传给api.

目前我正在考虑使用 javascript 函数单独遍历每个地址并将其传递给 api 但这似乎效率低下并且会在完成之前超过调用限制。

根据我的在线研究和地图 api 文档,我无法找到答案。

如果我能进一步澄清这个问题,请告诉我。

无法在一个请求中传递一组地址。您只能传递一个地址。

如果您每天需要超过 2500 个请求Google 报价启用计费并支付 0.50 美元/1000 个额外请求。

https://developers.google.com/maps/documentation/geocoding/usage-limits