Documentation
¶
Overview ¶
Package geolocation says where the phone is.
nimbus native plugin add geolocation
ok, err := geolocation.Request(ctx)
at, err := geolocation.Current(ctx)
go geolocation.Watch(ctx, func(p geolocation.Position) { setHere(p) })
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Position ¶
type Position struct {
Latitude float64 `json:"latitude"` // in degrees
Longitude float64 `json:"longitude"` // in degrees
Accuracy float64 `json:"accuracy"` // metres
Altitude float64 `json:"altitude"` // metres
Speed float64 `json:"speed"` // metres a second; below 0 when unknown
Heading float64 `json:"heading"` // degrees from north; below 0 when unknown
}
Position is a place on Earth.
Click to show internal directories.
Click to hide internal directories.