使用自由格式输入 Geocoder 的 Geogode 街道交叉口 API

Geogode street intersection with free-form input Geocoder API

我正在尝试通过 Here Geocoder API 正向地理编码对街道拦截进行地理编码。但是,没有成功。

文档中有一些示例: https://developer.here.com/api-explorer/rest/geocoder/latitude-longitude-intersection 有一个明显的方法可以做我 want.However 的事情,有一个代理端点,我不允许更改它并且它从客户端接受并传递给这里 API 只有自由形式的输入。

我尝试使用以下字符串作为我的自由格式输入值,它与文档示例相同: 州@麦迪逊,芝加哥 但得到 0 个结果。

我只是想知道是否可以通过 Here Forward Geocoding 实现这一点——如果不限制自由格式的输入格式,似乎很难实现?提前致谢!

我得到了街道交叉口的结果,请你用你的appkey,id试试。

https://geocoder.api.here.com/6.2/geocode.json?city=Chicago&street=State%20and%20Madison&app_id=xxxx&app_code=xxxx&gen=9

如果搜索需要自由形式,下面API调用也可以,但这里搜索匹配级别是基于城市以外的,而不是特定于街道。

https://geocoder.api.here.com/6.2/geocode.json?searchtext=200%20S%20Mathilda%20Sunnyvale%20CA&app_id=xxxx&app_code=xxxx&gen=9