Pebble.Companion.Geolocation
Access browser geolocation through the phone companion bridge.
Pebble.Companion.Geolocation.getCurrentPosition "location-now"
Events
Commands
Union Types
Event
type Eventtype Event
= Position { latitude : Float, longitude : Float, accuracy : Float }
| Error String
| Unknown StringGeolocation events reported by the bridge.
Values
decode
decode : BridgeEvent -> EventDecode a bridge geolocation event.
getCurrentPosition
getCurrentPosition : String -> CommandEnvelopeRequest the current phone location once.
watch
watch : String -> CommandEnvelopeStart watching location changes.
clearWatch
clearWatch : String -> Int -> CommandEnvelopeStop a previously started location watch.