StaticclearClear watcher by given ID.
ID of watcher
StaticgetGet the current user position.
Options for the geolocation request.
OptionalenableHighAccuracy?: booleanUse GPS support if possible (increase accuracy).
OptionalrequestNewPosition?: booleanRequests a new position. If set to false, the last saved position (if not older than 5 minutes) is returned.
OptionalroundResultTo?: numberRound the result of latitude and longitude to given count.
OptionalsupressErrorMessage?: booleanSupresses error message when position request ran in error or timeout.
StaticwatchWatch the current user position. And returns watcher ID.
callback function that takes a IHFLocation object as an input parameter.
callback function that takes an error object as an input parameter.
Options for the geolocation request.
OptionalaudioFeedback?: booleanEnable audio feedback on every successful fetch of new location data.
OptionalenableHighAccuracy?: booleanUse GPS support if possible (increase accuracy).
OptionalrequestNewPosition?: booleanForce to request always new position.
OptionalroundResultTo?: numberRound the result of latitude and longitude to given count.
OptionalsupressErrorMessage?: booleanSupresses error message when position request ran in error or timeout.
OptionalwatchTimeout?: numberQuit watcher after given time (milliseconds).
watcher ID
Static properties and methods related to geolocation handling.