here.content.hmc2.admin_locations module

here.content.hmc2.admin_locations module

Bindings for the HMC Administrative Locations.

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

Bindings for the HMC Administrative Locations.

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_locations.Location(partition_id: Partition, location_id: Identifier, location_type: str, display_position: Point, geometry: MultiPolygon, address_relation: str, area_type: str, segment_anchor: DecodedMessage, segment_anchor_side: str, accessors: DecodedMessage | None, political_geometry: DecodedMessage | None, alternate_geometry: DecodedMessage | None, within_location_ref: DecodedMessage | None, bounding_box: DecodedMessage | None, level_info: DecodedMessage | None)
Bases: object

Administrative Location

accessors: DecodedMessage | None

address_relation: str

alternate_geometry: DecodedMessage | None

area_type: str

bounding_box: DecodedMessage | None

display_position: Point

geometry: MultiPolygon

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

level_info: DecodedMessage | None

location_id: Identifier

location_type: str

partition_id: Partition

political_geometry: DecodedMessage | None

segment_anchor: DecodedMessage

segment_anchor_side: str

within_location_ref: DecodedMessage | None