Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>Geolocation

Deno Standard Extensions
Go to Latest
interface Geolocation
import { type Geolocation } from "https://deno.land/x/yxz@0.17.0/typing/lib.dom.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 | null,
options?: PositionOptions,
): void
watchPosition(
successCallback: PositionCallback,
errorCallback?: PositionErrorCallback | null,
options?: PositionOptions,
): number