Google 地理编码 API 根据邮政编码获取 LatLng

Google geocode API get LatLng based on zip code

我有一堆葡萄牙邮政编码,格式为 4000-700,我需要获取这些邮政编码的纬度和经度。 我正在尝试使用这个:

https://maps.googleapis.com/maps/api/geocode/json?address=4755-100,PT

但 Google 只有 returns 前缀的纬度和经度,即 4755,但我需要获取整个邮政编码的具体纬度和经度。 我该怎么做?

https://geocode.xyz/4755-100

葡萄牙 x,y z: 41.46952,-8.58580 m Geocode.xyz

  • 444 R MANINHO, SILVEIROS, Portugal 4755-100 » 置信度得分:0.5
  • CARVALHOS PT 4755-100 葡萄牙
  • CARVALHAS PT 4755-100 葡萄牙
  • SILVEIROS PT 4755-100 葡萄牙

在做我的实习项目时,我找到了一个网站 https://thezipcodes.com/ 创建一个免费帐户并从帐户部分获取 API 密钥。

https://thezipcodes.com/api/v1/search?zipCode={zipCode}&countryCode={2digitCountryCode}&apiKey={apiKey}

我在这里找到了大部分数据。