Documentation ¶
Overview ¶
Package destinationfinder provides functionality for determining where a flight with a given callsign is destined.
Package destinationfinder provides functionality for determining where a flight with a given callsign is destined.
Package destinationfinder provides functionality for determining where a flight with a given callsign is destined.
Package destinationfinder provides functionality for determining where a flight with a given callsign is destined.
Package destinationfinder provides functionality for determining where a flight with a given callsign is destined.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DestinationFinder ¶
type DestinationFinder interface {
GetDestinationFromCallsign(callsign string) (lat_long string, err error)
}
*
- Retrieves the lat long of the destination (as a simple string, we're not interested in doing
- any real processing with this, just using it as an index. *
func GetDestinationFinder ¶
func GetDestinationFinder() DestinationFinder
type DestinationFinderCache ¶
type DestinationFinderCache struct {
// contains filtered or unexported fields
}
*
- Retrieves the lat long of the destination (as a simple string, we're not interested in doing
- any real processing with this, just using it as an index. *
func (DestinationFinderCache) Cache_get ¶
func (dfc DestinationFinderCache) Cache_get(callsign string) string
func (DestinationFinderCache) Cache_set ¶
func (dfc DestinationFinderCache) Cache_set(callsign string, latlong string)
type FlightAwareDestinationFinder ¶
type FlightAwareDestinationFinder struct { }
func (*FlightAwareDestinationFinder) GetDestinationFromCallsign ¶
func (destination_finder *FlightAwareDestinationFinder) GetDestinationFromCallsign(callsign string) (lat_long string, err error)
*
- Retrieves the lat long of the destination (as a simple string, we're not interested in doing
- any real processing with this, just using it as an index. Uses the flightaware website as
- a datasource, and parses some js embedded in the page. As such this is potentially
- brittle, but the function defintion should stand, even if we were to plugin a different
- data source. *
type HolidayExtrasDestinationFinder ¶
type HolidayExtrasDestinationFinder struct { }
func (*HolidayExtrasDestinationFinder) ExtractDestinationFromHTML ¶
func (destination_finder *HolidayExtrasDestinationFinder) ExtractDestinationFromHTML(html []byte) (lat_long string, err error)
func (HolidayExtrasDestinationFinder) GetDestinationFromCallsign ¶
func (destination_finder HolidayExtrasDestinationFinder) GetDestinationFromCallsign(callsign string) (lat_long string, err error)
*
- Retrieves the lat long of the destination (as a simple string, we're not interested in doing
- any real processing with this, just using it as an index. Uses the flightaware website as
- a datasource, and parses some js embedded in the page. As such this is potentially
- brittle, but the function defintion should stand, even if we were to plugin a different
- data source. *
type PlaneFinderDestinationFinder ¶
type PlaneFinderDestinationFinder struct { }
func (*PlaneFinderDestinationFinder) ExtractDestinationFromHTML ¶
func (destination_finder *PlaneFinderDestinationFinder) ExtractDestinationFromHTML(html []byte) (lat_long string, err error)
func (PlaneFinderDestinationFinder) GetDestinationFromCallsign ¶
func (destination_finder PlaneFinderDestinationFinder) GetDestinationFromCallsign(callsign string) (lat_long string, err error)
*
- Retrieves the lat long of the destination (as a simple string, we're not interested in doing
- any real processing with this, just using it as an index. Uses the flightaware website as
- a datasource, and parses some js embedded in the page. As such this is potentially
- brittle, but the function defintion should stand, even if we were to plugin a different
- data source. *
Click to show internal directories.
Click to hide internal directories.