TomTom Maps for JavaScript
    Preparing search index...

    Type Alias GetPositionEntryPointOption

    GetPositionEntryPointOption: "main-when-available" | "ignore"

    Specifies how to handle entry points when extracting a position from a place.

    Entry points represent specific access locations for a place (e.g., building entrances, parking lot entries).

    • main-when-available: Returns the main entry point position if available, otherwise falls back to the default place position. This is useful for routing to ensure vehicles are directed to the correct entrance.
    • ignore: Always returns the default position of the place (typically the center point).
    // Get position preferring entry point for routing
    const position = getPosition(place, { useEntryPoint: 'main-when-available' });

    // Get center position ignoring entry points
    const centerPos = getPosition(place, { useEntryPoint: 'ignore' });