W3cubDocs

/DOM

Coordinates.longitude

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

Syntax

lon = coordinates.longitude

Specifications

Specification Status Comment
Geolocation API
The definition of 'Coordinates.longitude' in that specification.
Recommendation Initial specification.

Browser compatibility

3.5 (1.9.1)
Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari
Basic support 5 (Yes) (Yes) 9 10.60
No support 15.0
16.0
5
4.0 (4)
Feature Android Chrome for Android Edge Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? (Yes) (Yes) ? 10.60 ?

See also

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/longitude