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 an entry point's coordinates, as GetPositionEntryPointOption describes. 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' }