问题
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