Static
Private
locateStatic
addOrder handle
Order status
Geotag data JSON
current location if success or LocationError if failure
Adds a new geotag with expected location
Order handle
Order status
Geotag data JSON
Expected location
location with deviation if success or LocationError if failure
Geotag data JSON
current location if success or LocationError if failure
Adds a new geotag
Geotag data JSON
Expected location
location with deviation if success or LocationError if failure
Adds a new geotag with expected location
Static
getStatic
getReturns a list of errors that blocks SDK from tracking
List of errors
Static
getStatic
getStatic
getReflects the current location of the user or an outage reason
Static
getStatic
getStatic
locateRequests one-time location update and returns the location once it is available, or error.
Only one locate subscription can be active at a time. If you re-subscribe, the old Subscription will be automaticaly removed.
This method will start location tracking if called, and will stop it when the location is received or
the subscription is cancelled. If any other tracking intent is present (e.g. isAvailable is set to true
),
the tracking will not be stopped.
Subscription
const subscription = HyperTrack.locate(location => {
...
})
// to unsubscribe
subscription.remove()
Static
setStatic
setStatic
setStatic
setStatic
subscribeSubscribe to tracking errors
Subscription
const subscription = HyperTrack.subscribeToErrors(errors => {
errors.forEach(error => {
// ... error
})
})
// later, to stop listening
subscription.remove()
Static
subscribeSubscribe to availability changes
Subscription
const subscription = HyperTrack.subscribeToIsAvailable(isAvailable => {
if (isAvailable) {
// ... ready to go
}
})
// later, to stop listening
subscription.remove()
Static
subscribeSubscribe to tracking intent changes
Subscription
const subscription = HyperTrack.subscribeToIsTracking(isTracking => {
if (isTracking) {
// ... ready to go
}
})
// later, to stop listening
subscription.remove()
Static
subscribeSubscribe to location changes
Subscription
const subscription = HyperTrack.subscribeToLocation(location => {
...
})
// later, to stop listening
subscription.remove()
Adds a new geotag