Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractOpenAIPRecords ¶
func ExtractOpenAIPRecords(aip *File) ([]geo.AirportRecord, error)
ExtractOpenAIPRecords takes aip and converts all the airports into geo.AirportRecords. The list is returned if successful, and if not an error is returned.
Types ¶
type Airport ¶
type Airport struct { // XMLName - entity name XMLName xml.Name `xml:"AIRPORT"` Type string `xml:"TYPE,attr"` Identifier string `xml:"IDENTIFIER"` Country string `xml:"COUNTRY"` Name string `xml:"NAME"` Icao string `xml:"ICAO"` Geolocation Geolocation `xml:"GEOLOCATION"` }
Airport - main structure containing aircraft information
type Elevation ¶
type Elevation struct { // XMLName - entity name XMLName xml.Name `xml:"ELEV"` // Unit - unit as string Unit string `xml:"UNIT,attr"` // Value: altitude (todo: MASL? what type?) Value float64 `xml:",chardata"` }
Elevation - containing elevation value and units
type File ¶
type File struct { // XMLName - entity name XMLName xml.Name `xml:"OPENAIP"` Version string `xml:"VERSION,attr"` DataFormat string `xml:"DATAFORMAT,attr"` Waypoints Waypoints `xml:"WAYPOINTS"` }
File - main structure of openaip file
Click to show internal directories.
Click to hide internal directories.