Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12231

HERE lookup api gives 404

$
0
0

I'm trying to use autocomplete to retrieve cities in this way:

https://autocomplete.search.hereapi.com/v1/autocomplete?q=tokyo&limit=1

I receive this results:

{"items": [    {"title": "Japan, Tokyo","id": "here:cm:namedplace:25853290","language": "en","resultType": "locality","localityType": "city","address": {"label": "Tokyo, Japan, Japan","countryCode": "JPN","countryName": "Japan","county": "Japan","city": "Tokyo"        },"highlights": {"title": [                {"start": 7,"end": 12                }            ],"address": {"label": [                    {"start": 0,"end": 5                    }                ],"city": [                    {"start": 0,"end": 5                    }                ]            }        }    }]

}

Than I take the id here:cm:namedplace:25853290 that I will pass to the Lookup Api:

https://lookup.search.hereapi.com/v1/lookup?id=here:cm:namedplace:25853290

and I receive that response:

{"status": 404,"title": "Unknown Location ID","cause": "'here:cm:namedplace:25853290'","correlationId": "495ce2f5-850a-4105-910d-294a49fb1ab6","requestId": "REQ-ae97ea66-5c98-42eb-91b9-bb2b69a7c1d9"}

What could be the problem?

Thank you!


Viewing all articles
Browse latest Browse all 12231

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>