On this page

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

Properties

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?
SDK JS
Reference
GeolocationPositionError