gps-0.3.0: For manipulating GPS coordinates and trails.

Data.GPS.KML

Contents

Description

Author: Thomas DuBuisson Copyright: Thomas DuBuisson License: BSD3

Synopsis

KML Operations (Open format used by GoogleEarth, among others)

type KML = ElementSource

The KML type and operations might be moved into a Data.KML module in the future

trailToKML :: Coordinate a => String -> Trail a -> KMLSource

converts a given set of coordinates to a trail in KML format. Useful for saving as a file.

pointsToKML :: Coordinate a => String -> [a] -> [String] -> KMLSource

converts a given set of coordinates to points in KML format. Useful for saving as a file.

kmlToString :: KML -> StringSource

Converts the KML elements to a string and prepends the proper XML header, thus making it the correct format for saving as a file and opening it with other programs such as GoogleEarth.