OSM-0.6.4: Parse OpenStreetMap files

Data.Geo.OSM.Children

Description

The children elements of the osm element of a OSM file.

Synopsis

Documentation

data Children Source

The children elements of the osm element of a OSM file.

osmUser :: User -> ChildrenSource

A user element.

osmGpxFile :: GpxFile -> ChildrenSource

A gpx_file element.

osmApi :: Api -> ChildrenSource

A api element.

osmChangeset :: Changeset -> ChildrenSource

A changeset element.

osmNodeWayRelation :: [NodeWayRelation] -> ChildrenSource

A list of node, way or relation elements.

foldChildrenSource

Arguments

:: (User -> a)

If a user element.

-> (Preferences -> a)

If a preferences element.

-> (GpxFile -> a)

If a gpx_file element.

-> (Api -> a)

If a api element.

-> (Changeset -> a)

If a changeset element.

-> ([NodeWayRelation] -> a)

If a list of node, way or relation elements.

-> Children

The disjunctive type of child elements.

-> a 

Folds OSM child elements (catamorphism).