Interface Country

A country

interface Country {
    altSpellings: string[];
    area: number;
    borders: string[];
    capital: string[];
    capitalInfo: CapitalInfo;
    car: Car;
    cca2: string;
    cca3: string;
    ccn3: string;
    cioc: string;
    coatOfArms: CoatOfArmFormats;
    continents: Region[];
    currencies: Record<string, Currency>;
    demonyms: Record<string, Demonym>;
    fifa: string;
    flag: string;
    flags: FlagFormats;
    gini: Record<string, number>;
    idd: IDD;
    independent: boolean;
    landlocked: boolean;
    languages: Record<string, string>;
    latlng: Coordinates;
    maps: MapLinks;
    name: Name & {
        native: Record<string, Name>;
    };
    population: number;
    postalCode: PostalCode;
    region: Region;
    startOfWeek: WeekDay;
    status: string;
    subregion: string;
    timezones: string[];
    tld: string[];
    translations: Record<string, Name>;
    unMember: boolean;
}

Properties

altSpellings: string[]

The alternative spellings of the country name

area: number

The size of the country (km²)

borders: string[]

The bordering countries of the country

capital: string[]

The capital of the country

capitalInfo: CapitalInfo

The geographical information of the country's capital

car: Car

The car rules of the country

cca2: string

The ISO 3166-1 alpha-2 code of the country

cca3: string

The ISO 3166-1 alpha-3 code of the country

ccn3: string

The ISO 3166-1 numeric code of the country (UN M49)

cioc: string

The Code of the International Olympic Committee

coatOfArms: CoatOfArmFormats

The coat of arms of the country

continents: Region[]

The regions of the country

currencies: Record<string, Currency>

The currencies used in the country

demonyms: Record<string, Demonym>

The demonyms of the country

fifa: string

The FIFA code of the country

flag: string

The flag emoji of the country

The flag images of the country

gini: Record<string, number>

The Gini index of the country

idd: IDD

The calling codes of the country

independent: boolean

Whether the country is independent

landlocked: boolean

Whether the country is landlocked

languages: Record<string, string>

The languages spoken in the country

latlng: Coordinates

The latitude and longitude of the country

maps: MapLinks

The links to the maps of the country (Google Maps, OpenStreetMap)

name: Name & {
    native: Record<string, Name>;
}

The name of the country

Type declaration

  • native: Record<string, Name>

    The native name of the country

population: number

The population of the country

postalCode: PostalCode

The postal code format of the country

region: Region

The region of the country

startOfWeek: WeekDay

The start of the week in the country

status: string

The status of the country

subregion: string

The subregion of the country

timezones: string[]

The timezones of the country

tld: string[]

The top-level domain of the country

translations: Record<string, Name>

The translations of the country name

unMember: boolean

Whether the country is a member of the United Nations