Transformer.transform_other_tags

classmethod Transformer.transform_other_tags(other_tags)[source]

Reformat a 'other_tags' from string into dictionary type.

Parameters:

other_tags (str | None) – data of 'other_tags' of a single feature in a PBF data file

Returns:

reformatted data of 'other_tags'

Return type:

dict | None

Examples:

>>> from pydriosm.reader import Transformer

>>> other_tags_dat = Transformer.transform_other_tags(other_tags='"odbl"=>"clean"')
>>> other_tags_dat
{'odbl': 'clean'}

See also