Transformer.transform_other_tags

classmethod Transformer.transform_other_tags(other_tags)

Reformat a 'other_tags' from string into dictionary type.

Parameters

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

Returns

reformatted data of 'other_tags'

Return type

dict or 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