soaringweb

package
v0.0.0-...-1c86302 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2014 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package soaringweb provides functionality to fetch and parse airspace information, taking the international soaringweb db as input.

Check the soaringweb website for more information on the data:

http://soaringweb.org/Airspace/HomePage.html

Airspace data is handled in OpenAir format.

Index

Constants

View Source
const (
	ID string = "soaringweb"
)

ID for this plugin implementation.

Variables

View Source
var Regions = []string{"AF", "AU", "AT", "BE", "HR", "CZ", "DK", "FR",
	"DE", "HU", "EI", "IT", "LV", "LT", "MK", "NL", "NO", "PL", "SE",
	"SI", "SK", "ES", "CH", "UK", "CO", "BR"}

Regions supported for queries. FIXME: Missing finland and portugal (non standard page references)

Functions

This section is empty.

Types

type Release

type Release struct {
	Location string
	Region   string
	Date     time.Time
}

Release contains information regarding a soaringweb airspace release. Location is the URL of the file containing the data, Region is one of 'Regions', Date is the date of the release.

type SoaringWeb

type SoaringWeb struct {
	BaseURL string
}

SoaringWeb is the plugin implementation to collect soaringweb.org info.

BaseURL is the prefix to add 'region' to get the URL of the releases page ( eg. soaringweb.org/Airspace, which is the default ).

func (*SoaringWeb) GetAirspace

func (sw *SoaringWeb) GetAirspace(regions []string, updatedSince time.Time) ([]common.Airspace, error)

GetAirspace follows Airspace.GetAirspace().

func (*SoaringWeb) Init

func (sw *SoaringWeb) Init(cfg config.Config) error

Init follows the plugin.Plugin interface (see plugin.Pluginer).

func (*SoaringWeb) PutAirspace

func (sw *SoaringWeb) PutAirspace(airspace []common.Airspace) error

PutAirspace follows Airspacer.PutAirspace().

Jump to

Keyboard shortcuts

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