Share via


Location.Longitude Property

Definition

Get the longitude in degrees. -or- Set the longitude of this location.

public virtual double Longitude { [Android.Runtime.Register("getLongitude", "()D", "GetGetLongitudeHandler")] get; [Android.Runtime.Register("setLongitude", "(D)V", "GetSetLongitude_DHandler")] set; }
[<get: Android.Runtime.Register("getLongitude", "()D", "GetGetLongitudeHandler")>]
[<set: Android.Runtime.Register("setLongitude", "(D)V", "GetSetLongitude_DHandler")>]
member this.Longitude : double with get, set

Property Value

longitude of this location

Attributes

Remarks

Property getter documentation:

Get the longitude in degrees. All locations generated by the LocationManager will have a valid longitude.

Java documentation for android.location.Location.getLongitude().

Property setter documentation:

Set the longitude of this location.

Java documentation for android.location.Location.setLongitude(double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to