class CrystalGpx::Builder

Defined in:

crystal_gpx/builder.cr

Constant Summary

GPX_CLOSE = "</gpx>"
GPX_HEADER = "<gpx xmlns=\"http://www.topografix.com/GPX/1/1\" xmlns:gpxx=\"http://www.garmin.com/xmlschemas/GpxExtensions/v3\" >"
SEGMENT_CLOSE = "</trkseg>"
SEGMENT_OPEN = "<trkseg>"
TRK_CLOSE = "</trk>"
TRK_OPEN = "<trk>"
XML_HEADER = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?>"

Constructors

Instance Method Summary

Constructor Detail

def self.new(segments : Array(Array(CrystalGpx::Point))) #

[View source]
def self.new(array : Array(CrystalGpx::Point)) #

[View source]

Instance Method Detail

def segment_to_gpx(array) #

[View source]
def to_gpx #

[View source]
def to_simple_json #

[View source]