Here-API:搜索查询的顺序似乎很重要 [英] Here-API: Order of search query seems to matter

查看:51
本文介绍了Here-API:搜索查询的顺序似乎很重要的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Here-AutoSuggest API.在文档中有以下查询(Pariser + 1 + Berl):

I try using Here-AutoSuggest API. In the documentation there is this query (Pariser+1+Berl):

http://autocomplete.geocoder.api.here.com/6.2/suggest.json
  ?app_id={YOUR_APP_ID}
  &app_code={YOUR_APP_CODE}
  &query=Pariser+1+Berl

确切返回的位置.

但是,如果我尝试搜索Berl + Pariser + 1,则会得到零结果. 订购如何进行?

BUT if I try to search for Berl+Pariser+1 I get zero results. How does the ordering work?

推荐答案

问题是由于在查询之间放置了不完整的单词.自动完成api尝试与Berl进行完全匹配,因此不成功(无结果).以Berlin + Pariser + 1或Berlin + 1 + Paris进行查询可得到预期的结果.当前为免费增值提供的自动完成api与wego.here.com中提供的自动完成不完全匹配(在它们之间放置不完整的单词也可以!).还建议在查询中遵循以下格式-门牌号,街道名称,城市和县名(您可以删除任何一个).希望这可以帮助.祝您编码愉快!

The problem is due to placing incomplete words in between the query. The autocomplete api tries to do a exact match with Berl and hence becomes unsuccessful(no results). Making the query as Berlin+Pariser+1 or Berlin+1+Paris gives expected results. The autocomplete api provided for freemium currently doesn't exactly match the autocomplete provided in wego.here.com(where placing incomplete words inbetween also works!). Its also recommended to follow the following format in the query - house number, street name, city and county names (you can drop off any). Hope this helps. Happy Coding!

这篇关于Here-API:搜索查询的顺序似乎很重要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆