Interface RepresentedCountryRecord

Contains data for the represented country associated with an IP address. This class contains the country-level data associated with an IP address for the IP's represented country. The represented country is the country represented by something like a military base. Do not use any of the country names as a database or dictionary key. Use the ID or relevant instead.

interface RepresentedCountryRecord {
    geonameId: number;
    isInEuropeanUnion: boolean;
    isoCode: string;
    names: Names;
    type: string;
}

Hierarchy

Properties

geonameId: number

The GeoName ID for the country.

isInEuropeanUnion: boolean

This is true if the country is a member state of the European Union. This is available from all location services and databases.

isoCode: string

The two-character ISO 3166-1 alpha code for the country.

names: Names

An object of locale codes to the name in that locale. Don't use any of these names as a database or dictionary key. Use the ID or relevant code instead.

type: string

A string indicating the type of entity that is representing the country. Currently we only return military but this could expand to include other types in the future.

Generated using TypeDoc