here.content.hmc2.admin_locations module — HERE Data SDK for Python documentation
- Last UpdatedMar 27, 2025
- 2 minute read
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)[source]#
Bases:
SingleLayerBinding
Bindings for the HMC Administrative Locations.
- classmethod object_types() Mapping[str, type] [source]#
- Returns:
the types of attributes supported by this binding
- classmethod parse_and_index(partition_id: str, msg: Message) ContentPartition [source]#
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
- 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)[source]#
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#