OSM-0.4.1: Parse OpenStreetMap files

Data.Geo.OSM.OSMChildren

Description

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

Synopsis

Documentation

data OSMChildren Source

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

osmUser :: UserE -> OSMChildrenSource

A user element.

osmGpxFile :: GpxFile -> OSMChildrenSource

A gpx_file element.

osmApi :: Api -> OSMChildrenSource

A api element.

osmChangeset :: ChangesetE -> OSMChildrenSource

A changeset element.

osmNodeWayRelation :: [NodeWayRelation] -> OSMChildrenSource

A list of node, way or relation elements.

foldOSMChildrenSource

Arguments

:: (UserE -> a)

If a user element.

-> (Preferences -> a)

If a preferences element.

-> (GpxFile -> a)

If a gpx_file element.

-> (Api -> a)

If a api element.

-> (ChangesetE -> a)

If a changeset element.

-> ([NodeWayRelation] -> a)

If a list of node, way or relation elements.

-> OSMChildren

The disjunctive type of child elements.

-> a 

Folds OSM child elements (catamorphism).