Files
plex-api-spec/src/models/GeoData.yaml
2024-09-18 15:38:18 +00:00

76 lines
2.0 KiB
YAML

title: GeoData
type: object
description: "Geo location data"
examples:
- code: VI
continent_code: NA
country: United States Virgin Islands
city: Amsterdam
european_union_member: true
time_zone: America/St_Thomas
postal_code: 802
in_privacy_restricted_country: true
in_privacy_restricted_region: true
subdivisions: Saint Thomas
coordinates: "18.3381, -64.8941"
required:
- code
- continent_code
- country
- city
- european_union_member
- time_zone
- postal_code
- in_privacy_restricted_country
- in_privacy_restricted_region
- subdivisions
- coordinates
properties:
code:
type: string
description: The ISO 3166-1 alpha-2 code of the country.
example: VI
continent_code:
type: string
description: The continent code where the country is located.
example: NA
country:
type: string
description: The official name of the country.
example: United States Virgin Islands
city:
type: string
description: The name of the city.
example: Amsterdam
european_union_member:
type: boolean
description: Indicates if the country is a member of the European Union.
example: true
default: false
time_zone:
type: string
description: The time zone of the country.
example: America/St_Thomas
postal_code:
type: string
description: The postal code of the location.
example: "802"
in_privacy_restricted_country:
type: boolean
description: Indicates if the country has privacy restrictions.
example: true
default: false
in_privacy_restricted_region:
type: boolean
description: Indicates if the region has privacy restrictions.
example: true
default: false
subdivisions:
type: string
description: The name of the primary administrative subdivision.
example: Saint Thomas
coordinates:
type: string
description: "The geographical coordinates (latitude, longitude) of the location."
example: "18.3381, -64.8941"