This is the documentation of version 0.62.0. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias ShownPlaces

    ShownPlaces: Place | Place[] | Places

    What PlacesModule.show accepts, and what shown-features handlers receive back.

    Search, geocoding, reverse geocoding and place details return places, which show() takes as they are; preparePlacesForDisplay is what it does to them. Three places services return something else, and no converter turns it into places:

    Result Not showable because Show instead
    getSearchSuggestions Suggestions to choose from, without geometry; the autocomplete arm inside returns { context, results } segments A place suggestion's resolve(), or a brand or category's refine() — the follow-up search
    geometryData Polygons With GeometriesModule
    evChargingStationsAvailability Availability alone getPlacesWithEVAvailability