如何在Nokia Here Maps API上返回不完整字符串的结果? [英] How to return results for incomplete strings on Nokia Here Maps API?
问题描述
我正在构建一个依赖Here Maps Geocoder API的应用程序,以基于部分/不完整的字符串获取结果,以便在用户开始在搜索框中输入内容时向他们提供自动完成建议.
I'm building an application that relies on Here Maps Geocoder API to fetch results based on partial/incomplete strings, in order to give autocomplete suggestions to the user as they start typing something in the search box.
根据他们的文档,查询中的街道字段不必是一个确切的字段,因此我希望如果我输入街道名称的一半,我会得到建议.
Acording to their documentation, the street field in the query doesnt need to be an exact one, so I expect if i type half the name of the street i would get suggestions for it.
街道名称为Zhib
,包括城市名称:
With partial street name Zhib
, INCLUDING city name:
它没有结果.
http://geocoder.cit.api.here.com/6.2/geocode.json?prox=43.260204,76.914597,30000&searchtext=Zhib, Almaty&country=KAZ&app_id=MY_APP_ID&app_code=MY_APP_CODE&gen=8&maxresult=100&language=en
街道名称为Zhib
,城市名称除外:
With partial street name Zhib
, EXCLUDING city name:
它没有结果.
http://geocoder.cit.api.here.com/6.2/geocode.json?prox=43.260204,76.914597,30000&searchtext=Zhib&country=KAZ&app_id=MY_APP_ID&app_code=MY_APP_CODE&gen=8&maxresult=100&language=en
街道名称全为Zhibek-Zholy
,包括城市名称:
With full street name Zhibek-Zholy
, including city name:
给我地址.
http://geocoder.cit.api.here.com/6.2/geocode.json?prox=43.260204,76.914597,30000&searchtext=Zhibek-Zholy, Almaty&country=KAZ&app_id=MY_APP_ID&app_code=MY_APP_CODE&gen=8&maxresult=100&language=en
预期的行为:
因此,对于自动完成功能,我应该能够部分匹配获取结果,但API似乎并非如此.
Expected behavior:
So, for an autocomplete feature, i should be able to fetch results on a partial match, but this does not seem to be the case with the API.
有人遇到过同样的问题吗?
Anybody has been through the same problem?
推荐答案
此处HERE Geocoder API不提供自动完成功能.为此,我们在测试版中有一个单独的API.很高兴为您提供对此的访问,以换取您喜欢它的反馈. Philip(HERE Geocoder的PM)
The HERE Geocoder API doesn't offer an autocomplete feature. We have a separate API in BETA for this. Happy to provide you access to this in return for feedback how you like it. Philip (PM for HERE Geocoder)
这篇关于如何在Nokia Here Maps API上返回不完整字符串的结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!