Documentation ¶
Index ¶
Constants ¶
View Source
const URL = "https://airapi.airly.eu"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.16.0
type Client struct {
// contains filtered or unexported fields
}
func (Client) GetInstallation ¶ added in v0.16.0
func (c Client) GetInstallation(id uint) (Installation, error)
GetInstallation returns full details about installation with given ID
func (Client) GetMeasurement ¶ added in v0.16.0
func (c Client) GetMeasurement(installationId uint) (Measurement, error)
GetAirly queries external API and parses response
func (Client) NearestInstallation ¶ added in v0.16.0
func (c Client) NearestInstallation(lat, lon float32) (Installation, error)
NearestInstallation for given location.
type Installation ¶ added in v0.16.0
Click to show internal directories.
Click to hide internal directories.