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 ¶
const (
ID string = "soaringweb"
)
ID for this plugin implementation.
Variables ¶
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 ¶
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().