here.content.hmc2.extended_speed_limit module#
Bindings to combine speedlimit from navigation and advanced navigation attributes layers
- class here.content.hmc2.extended_speed_limit.ExtendedSpeedLimit(*args, **kwargs)[source]#
Bases:
BaseAttributesMultiLayerBindingBindings to combine speedlimit from navigation and advanced navigation attributes layers.
Deprecated since version 2.30.0: please use class TopologyAttributes instead
- 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
- classmethod process_advanced_attributes(na_speed_limits: Iterable[object], partition_id: str) List[ExtendedSpeedLimitAttributes][source]#
Process and combine advanced navigation attributes.
- Parameters:
na_speed_limits – a dict of segment to speed limit.
partition_id – partition id of the base layer.
- Returns:
list of ExtendedSpeedLimitAttributes object.
- class here.content.hmc2.extended_speed_limit.ExtendedSpeedLimitAttributes(*args, **kwargs)[source]#
Bases:
objectSpeed Limit attributes for segments from the combination of layers.
Deprecated since version 2.30.0: please use class TopologyAttributes instead
- backward: bool#
- forward: bool#
- indexer = ContentIndexer(partition='partition_id', identifier=None, refs={'segment': <function ExtendedSpeedLimitAttributes.<lambda>>})#
- partition_id: Partition#
- segment_ref: SegmentRef#
- source: str#
- speed_limit: int#
- unlimited: bool#