kml

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer processes locations into a KML file

func NewWriter

func NewWriter(opt WriterOptions) *Writer

NewWriter returns a new Writer initialized with opt

func (*Writer) Final

func (w *Writer) Final() (string, error)

Final returns the final result of the writer, or an error if one occurred.

func (*Writer) Write

func (w *Writer) Write(locationData []db.SightingLocation)

Write processes the new locationData and appends it to internal state

type WriterOptions

type WriterOptions struct {
	RouteName        string
	RouteDescription string

	SourceName        string
	SourceDescription string

	DestinationName        string
	DestinationDescription string
}

WriterOptions contains some preprocessed information about the flight

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL