【问题标题】:Address with Suite or other secondary address yields no autocomplete results带有 Suite 或其他辅助地址的地址不会产生自动完成结果
【发布时间】:2020-01-17 21:16:29
【问题描述】:

我遇到了一个问题,即输入/粘贴到表单字段中的地址由于包含辅助地址而没有返回任何自动完成结果。例如,以下查询可以正常工作:

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

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

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 中的搜索算法可以返回匹配级别的结果:country, state, county, city, district, street, intersection, houseNumber, postalCodelandmark。如果您将 Suite 替换为 API 可以理解的 #,则会返回结果

标签: here-api


【解决方案1】:

自动完成 API 中的搜索算法可以返回匹配级别的结果: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

【讨论】:

  • 所以我的地址需要格式化为1910%20W%20Fourth%20Plain%20Blvd%20%23100 (1910 W Fourth Plain Blvd #100) 才能被找到,这就是你的意思吗?谢谢!
猜你喜欢
  • 2021-08-28
  • 2013-10-24
  • 1970-01-01
  • 2018-09-15
  • 2015-11-13
  • 1970-01-01
  • 2020-09-15
  • 1970-01-01
  • 2021-04-12
相关资源
最近更新 更多