Data.Geo.OSM.NodeWayRelation
Description
The node, way, or relation element of a OSM file.
- data NodeWayRelation
- foldNodeWayRelation :: NodeWayRelation -> (Node -> x) -> (Way -> x) -> (Relation -> x) -> x
- way' :: Way -> NodeWayRelation
- relation' :: Relation -> NodeWayRelation
- node' :: Node -> NodeWayRelation
- isNode :: NodeWayRelation -> Bool
- isWay :: NodeWayRelation -> Bool
- isRelation :: NodeWayRelation -> Bool
Documentation
data NodeWayRelation Source
The node, way, or relation element of a OSM file.
Arguments
| :: NodeWayRelation | The |
| -> (Node -> x) | If this is a |
| -> (Way -> x) | If this is a |
| -> (Relation -> x) | If this is a |
| -> x |
Folds a node-way-relation (catamorphism).
way' :: Way -> NodeWayRelationSource
Construct a way element value.
relation' :: Relation -> NodeWayRelationSource
Construct a relation element value.
node' :: Node -> NodeWayRelationSource
Construct a node element value.
isNode :: NodeWayRelation -> BoolSource
Returns whether the node, way or relation element is a node.
isWay :: NodeWayRelation -> BoolSource
Returns whether the node, way or relation element is a way.
isRelation :: NodeWayRelation -> BoolSource
Returns whether the node, way or relation element is a relation.