here.content.hmc2.admin_places module

here.content.hmc2.admin_places module

Bindings for the HMC Administrative Places.

class here.content.hmc2.admin_places.AdminPlaces(content: Content, layer_id: str, adapter: Adapter | None = None, layer_type: LayerType | None = None)
Bases: SingleLayerBinding

Bindings for the HMC Administrative Places.

classmethod object_types() Mapping[str, type]
Returns:
the types of attributes supported by this binding

classmethod parse_and_index(partition_id: str, msg: Message) ContentPartition
Parse and index decoded message.

Parameters:

  • partition_id – identifier of the partition

  • msg – decoded content from the layer, in the form of a Protobuf message

Returns:
the content of a partition parsed and indexed in its own data structure

classmethod schema_hrn() List[str]
Returns:
the HRN of schema this binding can parse and index

class here.content.hmc2.admin_places.Place(partition_id: Partition, place_id: Identifier, name: List[DecodedMessage], category: List[Ref], alt_category: List[Ref], location_ref: Ref, valid_unnamed: bool, daylight_saving_time: DecodedMessage | None = None, government_code: int | None = None, administrative_restriction: DecodedMessage | None = None, time_zone: str | None = None, country: DecodedMessage | None = None, capital_indicator: DecodedMessage | None = None, population: int | None = None)
Bases: object

Administrative Place.

administrative_restriction: DecodedMessage | None = None

alt_category: List[Ref]

capital_indicator: DecodedMessage | None = None

category: List[Ref]

country: DecodedMessage | None = None

daylight_saving_time: DecodedMessage | None = None

government_code: int | None = None

indexer = ContentIndexer(partition='partition_id', identifier='place_id', refs=)

location_ref: Ref

name: List[DecodedMessage]

partition_id: Partition

place_id: Identifier

population: int | None = None

time_zone: str | None = None

valid_unnamed: bool