GeolocationCoordinates.latitude

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The GeolocationCoordinates.latitude read-only property is a double representing the latitude of the position in decimal degrees.

Syntax

let lat = geolocationCoordinatesinstance.latitude

Value

A double representing the latitude of the position in decimal degrees.

Specifications

Specification
Geolocation API Specification 2nd Edition
# latitude-longitude-and-accuracy-attributes

Browser compatibility

BCD tables only load in the browser

See also