TomTom Maps for JavaScript
    Preparing search index...

    Type Alias GetPositionOptions

    Configuration options for extracting position coordinates from a place.

    type GetPositionOptions = {
        useEntryPoint?: GetPositionEntryPointOption;
    }
    Index

    Properties

    Properties

    Controls whether to use entry point positions when available.

    When set to 'main-when-available', the main entry point coordinates will be returned if they exist, otherwise the default place position is used. This is particularly useful for routing applications where you want 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' }