|
|
@@ -57,7 +57,7 @@ impl<'a> Node<'a> {
|
|
57
|
57
|
}
|
|
58
|
58
|
|
|
59
|
59
|
/// An OpenStreetMap way element (See [OSM wiki](http://wiki.openstreetmap.org/wiki/Way)).
|
|
60
|
|
-///
|
|
|
60
|
+///
|
|
61
|
61
|
/// A way contains an ordered list of node references that can be accessed with the `refs` or the
|
|
62
|
62
|
/// `refs_slice` method.
|
|
63
|
63
|
pub struct Way<'a> {
|
|
|
@@ -108,7 +108,7 @@ impl<'a> Way<'a> {
|
|
108
|
108
|
}
|
|
109
|
109
|
|
|
110
|
110
|
/// An OpenStreetMap relation element (See [OSM wiki](http://wiki.openstreetmap.org/wiki/Relation)).
|
|
111
|
|
-///
|
|
|
111
|
+///
|
|
112
|
112
|
/// A relation contains an ordered list of members that can be of any element type.
|
|
113
|
113
|
pub struct Relation<'a> {
|
|
114
|
114
|
block: &'a PrimitiveBlock,
|
|
|
@@ -149,7 +149,7 @@ impl<'a> Relation<'a> {
|
|
149
|
149
|
}
|
|
150
|
150
|
|
|
151
|
151
|
/// An iterator over the references of a way.
|
|
152
|
|
-///
|
|
|
152
|
+///
|
|
153
|
153
|
/// Each reference corresponds to a node id.
|
|
154
|
154
|
pub struct WayRefIter<'a> {
|
|
155
|
155
|
deltas: std::slice::Iter<'a, i64>,
|
|
|
@@ -195,7 +195,7 @@ impl From<osmformat::Relation_MemberType> for RelMemberType {
|
|
195
|
195
|
|
|
196
|
196
|
//TODO encapsulate member_id based on member_type (NodeId, WayId, RelationId)
|
|
197
|
197
|
/// A member of a relation.
|
|
198
|
|
-///
|
|
|
198
|
+///
|
|
199
|
199
|
/// Each member has a member type and a member id that references an element of that type.
|
|
200
|
200
|
pub struct RelMember<'a> {
|
|
201
|
201
|
block: &'a PrimitiveBlock,
|