Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>Geolocation

Advanced Web Composition for Future
Latest
interface Geolocation
import { type Geolocation } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

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.

Methods

clearWatch(watchId: number): void
getCurrentPosition(
successCallback: PositionCallback,
errorCallback?: PositionErrorCallback,
options?: PositionOptions,
): void
watchPosition(
successCallback: PositionCallback,
errorCallback?: PositionErrorCallback,
options?: PositionOptions,
): number