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

    Type Alias CountrySectionProps

    CountrySectionProps: SectionProps & {
        countryCodeISO2: string;
        countryCodeISO3: string;
    }

    Route section representing passage through a country.

    Used to identify which countries the route traverses, useful for:

    • Border crossing planning
    • International routing costs
    • Regulatory requirements

    Type Declaration

    • countryCodeISO2: string

      Two-letter ISO 3166-1 alpha-2 country code.

      Examples: 'US', 'GB', 'NL', 'DE', 'FR'

    • countryCodeISO3: string

      Three-letter ISO 3166-1 alpha-3 country code.

      Examples: 'USA', 'GBR', 'NLD', 'DEU', 'FRA'

    const countrySection: CountrySectionProps = {
    id: 'country-section-1',
    startPointIndex: 0,
    endPointIndex: 150,
    countryCodeISO2: 'NL', // Netherlands
    countryCodeISO3: 'NLD',
    };