Region

public final class Region

Parameters

id

Region Id.

type

Region type.

name

Region name.

nameFull

Full region name.

descriptor

Specific information about the region e.g. whether it covers surrounding areas for a city. Only present when relevant for a region. See our region descriptors reference for current known descriptor values.

iataAirportCode

3-character IATA airport code.

iataAirportMetroCode

3-character IATA airport metropolitan code of the metropolitan airport area.

countryCode

Region country code (ISO 3166-1 alpha-2).

countrySubdivisionCode

Region country subdivision code (ISO 3166-2).

coordinates
associations

A map of region types to a sorted array of region ids with a touristic association to the region.

ancestors

An array of the region's ancestors.

descendants

A map of region types to an array of region ids. The region ids are direct descendants of the region.

propertyIds

An array of associated property ids for the region.

propertyIdsExpanded

An array of associated property ids within an expanded radius for the region.

categories

A list of regional categories.

tags

A list of regional tags.

Constructors

Link copied to clipboard
public Region Region(String id, String type, String name, String nameFull, String descriptor, String iataAirportCode, String iataAirportMetroCode, String countryCode, String countrySubdivisionCode, CoordinatesRegion coordinates, Map<String, List<String>> associations, List<Ancestors> ancestors, Map<String, List<String>> descendants, List<String> propertyIds, List<String> propertyIdsExpanded, List<String> categories, List<String> tags)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@Valid()
private final List<Ancestors> ancestors
Link copied to clipboard
@Valid()
private final Map<String, List<String>> associations
Link copied to clipboard
@Valid()
private final List<String> categories
Link copied to clipboard
@Valid()
private final CoordinatesRegion coordinates
Link copied to clipboard
@Valid()
private final String countryCode
Link copied to clipboard
@Valid()
private final String countrySubdivisionCode
Link copied to clipboard
@Valid()
private final Map<String, List<String>> descendants
Link copied to clipboard
@Valid()
private final String descriptor
Link copied to clipboard
@Valid()
private final String iataAirportCode
Link copied to clipboard
@Valid()
private final String iataAirportMetroCode
Link copied to clipboard
@Valid()
private final String id
Link copied to clipboard
@Valid()
private final String name
Link copied to clipboard
@Valid()
private final String nameFull
Link copied to clipboard
@Valid()
private final List<String> propertyIds
Link copied to clipboard
@Valid()
private final List<String> propertyIdsExpanded
Link copied to clipboard
@Valid()
private final List<String> tags
Link copied to clipboard
@Valid()
private final String type

Functions

Link copied to clipboard
public final static Region.Builder builder()
Link copied to clipboard
public final List<Ancestors> getAncestors()
Link copied to clipboard
public final Map<String, List<String>> getAssociations()
Link copied to clipboard
public final List<String> getCategories()
Link copied to clipboard
Link copied to clipboard
public final String getCountryCode()
Link copied to clipboard
Link copied to clipboard
public final Map<String, List<String>> getDescendants()
Link copied to clipboard
public final String getDescriptor()
Link copied to clipboard
public final String getIataAirportCode()
Link copied to clipboard
Link copied to clipboard
public final String getId()
Link copied to clipboard
public final String getName()
Link copied to clipboard
public final String getNameFull()
Link copied to clipboard
public final List<String> getPropertyIds()
Link copied to clipboard
Link copied to clipboard
public final List<String> getTags()
Link copied to clipboard
public final String getType()