Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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.

interface Geolocation {
clearWatch(watchId: number): void;
getCurrentPosition(
successCallback: PositionCallback,
errorCallback?: PositionErrorCallback | null,
options?: PositionOptions,
): void;
watchPosition(
successCallback: PositionCallback,
errorCallback?: PositionErrorCallback | null,
options?: PositionOptions,
): number;
}
var Geolocation: {
prototype: Geolocation;
new (): Geolocation;
}
;

§Methods

§
clearWatch(watchId: number): void
[src]
§
getCurrentPosition(
successCallback: PositionCallback,
errorCallback?: PositionErrorCallback | null,
options?: PositionOptions,
): void
[src]
§
watchPosition(
successCallback: PositionCallback,
errorCallback?: PositionErrorCallback | null,
options?: PositionOptions,
): number
[src]