1 Answer
- Newest
- Most votes
- Most comments
1
Hello!
We've recently released a new set of APIs to interact with Amazon Location Service. With this we've added the "Suggest" API. This API leverages the HERE Data Provider and provides a smart predictive text engine.
One of the features of Suggest is that it requires a bias position or bounding box/circle. For example I did a search for your search term with a bias position:
~ $ aws geo-places suggest --query-text "Aéroport International de Cayenne" --bias-position [-53.6248340271006,14.06999092561926]
{
"PricingBucket": "Label",
"ResultItems": [
{
"Title": "Aéroport International de Rochambeau (Aéroport de Cayenne)",
"SuggestResultItemType": "Place",
"Place": {
"PlaceId": "AQAAAFUA5fgWDaiER43fBAT6WF8DCmUCL4theNKfFPDwEpEyG0NwkUSiNcipAmYrT3vDMbG1GcHgeIk7q6ZzpUn1swhHGLV73KdhWtQ_5Pw9HOuBzTRdvBFqivlrcxa8VujuGioPLN9GClkpdunIIcrDdARKldajSHj6",
"PlaceType": "PointOfInterest"
}
},
{
"Title": "Flughafen Wien (Aéroport de Vienne)",
"SuggestResultItemType": "Place",
"Place": {
"PlaceId": "AQAAAFUAlqjqYP-fUdGbcvBaXezz80HrX_njbbpfejs9cqbijGcaG9nD5bknS2mZY-bBOyHF3AUCMyamWO9lz3MCFdeLg0b7nZ6IVoSaqHFjteKN_aZM0ONu06lUWR4aJgKeVhcZry0r9oeZlOTzFZFf5AL5g7oHecme",
"PlaceType": "PointOfInterest"
}
}
],
"QueryRefinements": []
}
Which does provide the required result. So if you know the general area you'd like to search, you can use that as a bias position to provide the most accurate results.
I hope this helps. Please let me know if there are any additional questions.
Relevant content
- asked a year ago
- asked 9 months ago
Thank you for your answer, what also helped is that I added the category PointOfInterestType in the filter (I forgot i was using category filters)