Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface GeolocationPositionError

The GeolocationPositionError interface represents the reason of an error occurring when using the geolocating device.

MDN Reference

interface GeolocationPositionError {
    code: number;
    message: string;
    PERMISSION_DENIED: 1;
    POSITION_UNAVAILABLE: 2;
    TIMEOUT: 3;
}
Index
code: number

The code read-only property of the GeolocationPositionError interface is an unsigned short representing the error code.

MDN Reference

message: string

The message read-only property of the GeolocationPositionError interface returns a human-readable string describing the details of the error.

MDN Reference

PERMISSION_DENIED: 1
POSITION_UNAVAILABLE: 2
TIMEOUT: 3
Was this helpful?