Geolocation

An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.

MDN Reference

Functions

Link copied to clipboard
Link copied to clipboard
fun getCurrentPosition(    successCallback: PositionCallback,     errorCallback: PositionErrorCallback? = definedExternally,     options: PositionOptions = definedExternally)
Link copied to clipboard
fun watchPosition(    successCallback: PositionCallback,     errorCallback: PositionErrorCallback? = definedExternally,     options: PositionOptions = definedExternally): GeolocationWatchId