OSM-0.5.0: Parse OpenStreetMap files

Data.Geo.OSM.NodeWayRelation

Description

The node, way, or relation element of a OSM file.

Synopsis

Documentation

data NodeWayRelation Source

The node, way, or relation element of a OSM file.

foldNodeWayRelationSource

Arguments

:: NodeWayRelation

The node, way or relation element.

-> (Node -> x)

If this is a node element.

-> (Way -> x)

If this is a way element.

-> (Relation -> x)

If this is a relation element.

-> 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.