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

    Type Alias CountryCrossingFeature

    CountryCrossingFeature: Feature<
        Point,
        DisplayCountryCrossingProps & {
            fromSection?: CountrySectionProps;
            toSection?: CountrySectionProps;
        },
    >

    A border crossing as an event hands it over: the drawn feature, plus the two country sections it joins.

    The sections are looked up on the route the crossing belongs to, so they are the same objects route.properties.sections.country holds rather than copies. They are absent only when the route that carried them is no longer shown.