Missing places using suggestions via Places index (Aws Location)

0

We are using AWS location service's AutoComplete suggestions API to search for places. Index Used: Esri or Here, same issue with both

Searching for some places in a second zone country (as referenced in esri documentation) like the international airport, no result is provided (Aéroport International de Cayenne - Félix Éboué)

It seems like this kind of place should be available but maybe I am missing something in my params ? I included no country filter (and when I do it doesn't change anything) nor categories.

I can understand that not every place would be available but at least international airports should be included. Is there a way to find a solution ?

asked 2 months ago68 views
1 Answer
1
Accepted Answer

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.

profile pictureAWS
EXPERT
answered 2 months ago
profile picture
EXPERT
reviewed 2 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)

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions