Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistanceInMeters ¶
Distance function returns the distance (in meters) between two points of
a given longitude and latitude relatively accurately (using a spherical approximation of the Earth) through the Haversin Distance Formula for great arc distance on a sphere with accuracy for small distances
point coordinates are supplied in degrees and converted into rad. in the func
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds or configuration
type Item ¶
type Item struct {
PushMessage string
HeadLine string
SenderName string
Country bool
County bool
Distance float64
Updated time.Time
}
Item holds the interesting parts
type Krisinformation ¶
type Krisinformation []struct {
Identifier string `json:"Identifier"`
PushMessage string `json:"PushMessage"`
Updated time.Time `json:"Updated"`
Published time.Time `json:"Published"`
Headline string `json:"Headline"`
Preamble string `json:"Preamble"`
BodyText string `json:"BodyText"`
Area []struct {
Type string `json:"Type"`
Description string `json:"Description"`
Coordinate string `json:"Coordinate"`
GeometryInformation interface{} `json:"GeometryInformation"`
} `json:"Area"`
Web string `json:"Web"`
Language string `json:"Language"`
Event string `json:"Event"`
SenderName string `json:"SenderName"`
Push bool `json:"Push"`
BodyLinks []interface{} `json:"BodyLinks"`
SourceID int `json:"SourceID"`
IsVma bool `json:"IsVma"`
IsTestVma bool `json:"IsTestVma"`
}
type Settings ¶
type Settings struct {
// contains filtered or unexported fields
}
Settings defines the configuration properties for this module
Click to show internal directories.
Click to hide internal directories.