Windows Dev Center

Geocoordinate.Longitude | longitude property

[Longitude may be altered or unavailable after Windows 8.1 and Windows Phone 8.1. Instead, use Geocoordinate.Point.]

The longitude in degrees.

Syntax


var longitude = geocoordinate.longitude;

Property value

Type: Number [JavaScript] | System.Double [.NET] | float64 [C++]

The longitude in degrees. The valid range of values is from -180.0 to 180.0.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

See also

Geocoordinate

 

 

Show:
© 2015 Microsoft