This is the documentation of version 1.0.0-rc.3. 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;
    }

    A route section through a country.

    Use it to identify which countries the route traverses, for:

    • Border crossing planning
    • International routing costs
    • Regulatory requirements

    Type Declaration

    • countryCodeISO2: string

      The two-letter ISO 3166-1 alpha-2 country code, such as 'US', 'GB', 'NL', 'DE' or 'FR'.

    • countryCodeISO3: string

      The three-letter ISO 3166-1 alpha-3 country code, such as 'USA', 'GBR', 'NLD', 'DEU' or 'FRA'.

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