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

    Type Alias GeometryParams

    Union type for all geometry data parameter formats.

    Accepts either geometry IDs directly or places containing geometry IDs.

    Use GeometryDataParams when you have geometry IDs as strings, and GeometryPlaceParams when you have place objects from search.

    // Using IDs
    const idParams: GeometryParams = {
    geometries: ['g1234567890']
    };

    // Using places
    const placeParams: GeometryParams = {
    geometries: searchResults
    };