Files
plexjs/docs/sdk/models/operations/geodata.md

5.0 KiB
Raw Blame History

GeoData

Geo location data

Example Usage

import { GeoData } from "@lukehagar/plexjs/sdk/models/operations";

let value: GeoData = {
  code: "VI",
  continentCode: "NA",
  country: "United States Virgin Islands",
  city: "Amsterdam",
  europeanUnionMember: true,
  timeZone: "America/St_Thomas",
  postalCode: "802",
  inPrivacyRestrictedCountry: true,
  inPrivacyRestrictedRegion: true,
  subdivisions: "Saint Thomas",
  coordinates: "18.3381, -64.8941",
};

Fields

Field Type Required Description Example
code string ✔️ The ISO 3166-1 alpha-2 code of the country. VI
continentCode string ✔️ The continent code where the country is located. NA
country string ✔️ The official name of the country. United States Virgin Islands
city string ✔️ The name of the city. Amsterdam
europeanUnionMember boolean Indicates if the country is a member of the European Union. true
timeZone string ✔️ The time zone of the country. America/St_Thomas
postalCode string ✔️ The postal code of the location. 802
inPrivacyRestrictedCountry boolean Indicates if the country has privacy restrictions. true
inPrivacyRestrictedRegion boolean Indicates if the region has privacy restrictions. true
subdivisions string ✔️ The name of the primary administrative subdivision. Saint Thomas
coordinates string ✔️ The geographical coordinates (latitude, longitude) of the location. 18.3381, -64.8941