here.content.hmc2.admin_index module
here.content.hmc2.admin_index module
Bindings for the HMC Administrative Tile Index.
class here.content.hmc2.admin_index.AdminIndex(content: Content, layer_id: str, adapter: Adapter | None = None, layer_type: LayerType | None = None)
Bases: SingleLayerBinding
Bindings for the HMC Administrative Tile Index.
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_index.CountryTiles(iso_country_code: Identifier, tile_id: List[int])
Bases: object
Country Tile Index.
indexer = ContentIndexer(partition=None, identifier='iso_country_code', refs=)
iso_country_code: Identifier
tile_id: List[int]
class here.content.hmc2.admin_index.LocationTiles(location_ref: Ref, iso_country_code: str, tile_id: List[int], boundary_tile_id: List[int])
Bases: object
Location Tile Index.
boundary_tile_id: List[int]
indexer = ContentIndexer(partition=None, identifier=None, refs={'location':</span> <span class="pre">'location_ref'})
iso_country_code: str
location_ref: Ref
tile_id: List[int]