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

    Type Alias GetPositionOptions

    Options for extracting the position coordinates of a place.

    type GetPositionOptions = {
        useEntryPoint?: GetPositionEntryPointOption;
    }
    Index

    Whether to use entry point positions when available.

    With 'main-when-available', you get the main entry point coordinates if they exist, otherwise the default place position. Use it for routing, to direct users to the correct entrance.

    'ignore'
    
    // For routing to a specific entrance
    { useEntryPoint: 'main-when-available' }

    // For displaying place center on map
    { useEntryPoint: 'ignore' }