here.content.hmc2.environmental_zone_conditions module — HERE Data SDK for Python documentation
- Last UpdatedMar 27, 2025
- 2 minute read
Bindings for the Associated Segments from Navigation Attributes and Environmental Zones Layers.
- class here.content.hmc2.environmental_zone_conditions.EnvironmentalZoneConditions(content: Content, layer_id: str, adapter: Adapter | None = None)[source]#
Bases:
BaseAttributesMultiLayerBinding
class to associate segment with environmental zones
- classmethod associate_ezc_ez(environmental_zone_condition: Iterable[object], partition_id: str) List[SegmentToEnvironmentalZone] [source]#
Associate environmental_zone_condition with environment_zone.
- Parameters:
environmental_zone_condition – a dict of segment to environmental zone condition.
partition_id – partition id of the base layer.
- Returns:
list of SegmentToEnvironmentalZone object.
- classmethod associated_layers() Dict[str, SingleLayerBinding] [source]#
Provide associated dependent/independent layers to the base layer.
- Returns:
dict of key as single layer and value as SingleLayerBinding Object.
- 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.environmental_zone_conditions.SegmentToEnvironmentalZone(partition_id: Partition, segment_ref: SegmentRef, forward: bool, backward: bool, applies_to: Dict[str, bool], zone: Zone)[source]#
Bases:
object
Segment to Ennvironmental Zone
- applies_to: Dict[str, bool]#
- backward: bool#
- forward: bool#
- indexer = ContentIndexer(partition='partition_id', identifier=None, refs={'location': <function SegmentToEnvironmentalZone.<lambda>>, 'segment': <function SegmentToEnvironmentalZone.<lambda>>})#
- partition_id: Partition#
- segment_ref: SegmentRef#