GeolocationResult: {
    city?: string;
    continent?: string;
    continent_code?: string;
    country?: string;
    country_bounds?: BBox;
    country_code?: string;
    country_languages?: string[];
    eu?: boolean;
    latitude?: number;
    longitude?: number;
    postal?: string;
    region?: string;
    region_code?: string;
    timezone?: string;
}

Type declaration

  • Optional city?: string

    Name of the city Example: Zurich

  • Optional continent?: string

    Name of the continent Example: Europe

  • Optional continent_code?: string

    Two-letter code of the continent Example: EU

  • Optional country?: string

    Name of the country Example: Switzerland

  • Optional country_bounds?: BBox

    Bounds of the country in WGS84 degrees [west, south, east, north]. Example: [5.95538,45.818852,10.490936,47.809357]

  • Optional country_code?: string

    Two-letter code of the country ISO 3166-1 alpha-2 codes Example: CH

  • Optional country_languages?: string[]

    Official country languages in ISO 639-1 format. ISO 639-1 codes Example: ["de","fr","it"]

  • Optional eu?: boolean

    Indicated whether the country is part of the European Union.

  • Optional latitude?: number

    Latitude of the location Example: 47.36667

  • Optional longitude?: number

    Longitude of the location Example: 8.55

  • Optional postal?: string

    Postal code Example: 8000

  • Optional region?: string

    If known, the ISO 3166-2 name for the first level region. ISO 3166-2 codes Example: Zurich

  • Optional region_code?: string

    If known, the ISO 3166-2 code for the first level region. ISO 3166-2 codes Example: ZH

  • Optional timezone?: string

    Name of the timezone Example: Europe/Zurich

Generated using TypeDoc