HERE Geocoding API未返回美国地址的9位邮政编码

时间:2019-10-03 18:12:52

标签: here-api

我正在使用HERE Maps Geocoding API进行地址标准化。地理编码API始终会返回5位邮政编码作为美国地址的响应,而我正在寻找9位邮政编码。我在文档中找不到任何相关信息。

HERE Maps Geocoding API是否具有此功能?如果是,该如何实现?

对此有任何帮助,我们深表感谢。

2 个答案:

答案 0 :(得分:0)

嗨,您可以通过传递参数来检索9位邮政编码

additionaldata = IncludeZipAddOn,true

http://geocoder.api.here.com/6.2/geocode.json?gen=8&jsonattributes=1&language=en-US&maxresults=20&searchtext=42204%20Fisher%20Island%20Dr%2C%20Miami%2C%20FL&additionaldata=IncludeZipAddOn,true&app_code=&app_id=

答案 1 :(得分:0)

调用

https://geocode.search.hereapi.com/v1/geocode?q=ADDRESS#########&apiKey=KEY#########

https://geocode.search.hereapi.com/v1/geocode?q=ADDRESS##########&additionaldata=IncludeZipAddOn,true&apiKey=KEY##########

我仍然只是从那里得到 5 位数的拉链。