You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following table gives an overview over the recognised attributes and
90
+
acceptable types. If an attribute is missing, then pyosmium will choose a
91
+
suitable default or leave the attribute out completely from the output if
92
+
that is possible.
93
+
94
+
| attribute | types |
95
+
|-----------|----------------------------|
96
+
| id |`int`|
97
+
| version |`int` (positive non-zero value) |
98
+
| visible |`bool`|
99
+
| changeset |`int` (positive non-zero value) |
100
+
| timestamp |`str` or `datetime` (will be translated to UTC first) |
101
+
| uid |`int`|
102
+
| tags |[osmium.osm.TagList][], a dict-like object or a list of tuples, where each tuple contains a (key, value) string pair |
103
+
| user |`str`|
104
+
| location |_(node only)_[osmium.osm.Location][] or a tuple of lon/lat coordinates |
105
+
| nodes |_(way only)_[osmium.osm.NodeRefList][] or a list consisting of either [osmium.osm.NodeRef][]s or simple node ids |
106
+
| members |_(relation only)_[osmium.osm.RelationMemberList][] or a list consisting of either [osmium.osm.RelationMember][]s or tuples of `(type, id, role)`. The member type must be a single character 'n', 'w' or 'r'. |
107
+
108
+
The `osmium.osm.mutable` module offers pure Python-object versions of `Node`,
109
+
`Way` and `Relation` to make the creation of custom objects easier. Any of
110
+
the allowable attributes may be set in the constructor. This makes the
0 commit comments