iandees / pyosm

A Python library for parsing OSM streams.
MIT License
15 stars 4 forks source link

Tags as a list rather than a dictionary? #1

Open emacsen opened 10 years ago

emacsen commented 10 years ago

This is not an "issue"- more of a question.

Tags are represented as a list on the element. I would have thought that the tags would be represented as a dictionary so you could do a lookup.

I'm wondering if there was a reason that tags are represented as a list, for example, to support API 0.5 data, where a key could be repeated multiple times?

iandees commented 10 years ago

I think I did it this way to make parsing/serializing a bit easier. It probably makes sense to switch it to a dict.