带有 Suite 或其他辅助地址的地址不会产生自动完成结果

Address with Suite or other secondary address yields no autocomplete results

我 运行 遇到一个问题,表单字段中的地址 typed/pasted 由于包含了辅助地址,因此不会返回任何自动完成结果。例如,以下查询工作正常:

http://autocomplete.geocoder.api.here.com/6.2/suggest.json?app_id=...&app_code=...&query=1910%20W%20Fourth%20Plain%20Blvd&country=USA&maxresults=5

但是,这个查询(实际完整地址)returns没有结果:

http://autocomplete.geocoder.api.here.com/6.2/suggest.json?app_id=...&app_code=...&query=1910%20W%20Fourth%20Plain%20Blvd%20Suite%20100%2C%20Vancouver%2C%20WA%2098660&country=USA&maxresults=5

有没有办法允许辅助地址信息,例如 Suite、Apt 等?

自动完成 API 中的搜索算法可以 return 匹配级别的结果:country, state, county, city, district, street, intersection, houseNumber, postalCode and landmark.如果将 Suite 替换为 API 理解的 #,您会得到返回结果

https://developer.here.com/documentation/geocoder-autocomplete/dev_guide/topics/resource-suggest.html