Here suggest API returns PARSING_ERROR

最后都变了- 提交于 2020-07-03 08:10:38

问题


Since yesterday, our Here API to get place suggestions systematically returns 'PARSING_ERROR'.

The status page at here https://status.here.com/status says all is fine, so what can be the problem?

Our code, operational in live since weeks:

if (fromCoordinates == null)
        {
            double lat = getIntent().getDoubleExtra("lat", 0.0);
            double lng = getIntent().getDoubleExtra("long", 0.0);
            fromCoordinates = new GeoCoordinates(lat, lng);
            int maxItems = 5;
            searchOptionsFrom = new SearchOptions(LanguageCode.EN_GB, maxItems);
        }
searchEngine.suggest(
                new TextQuery(input,
                        fromCoordinates),
                searchOptionsFrom,
                autosuggestCallbackFrom);

Coordinates are fine and search term is 'London'. We tried with different API keys and different input, but result is always the same. Geocoding and calculateRoute from here work fine.

This is what the callback shows:

来源:https://stackoverflow.com/questions/62690643/here-suggest-api-returns-parsing-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!