structs

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coordinate

type Coordinate struct {
	Lat float64
	Lng float64
}

Coordinate represents a geographical point with latitude and longitude

type Document

type Document struct {
	Placemarks []Placemark `xml:"Placemark"`
}

type KML

type KML struct {
	XMLName  xml.Name  `xml:"kml"`
	Document *Document `xml:"Document"`
}

type LinearRing

type LinearRing struct {
	Coordinates string `xml:"coordinates"`
}

type OuterBoundaryIs

type OuterBoundaryIs struct {
	LinearRing LinearRing `xml:"LinearRing"`
}

type Placemark

type Placemark struct {
	Name        string   `xml:"name"`
	Description string   `xml:"description"`
	Polygon     *Polygon `xml:"Polygon"`
}

type Polygon

type Polygon struct {
	OuterBoundaryIs OuterBoundaryIs `xml:"outerBoundaryIs"`
	Coordinates     []Coordinate
}

Jump to

Keyboard shortcuts

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