Android.Locations.Location Members

The members of Android.Locations.Location are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Construct a new Location object that is copied from an existing one.
Construct a new Location with a named provider.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

Accuracyfloat. Get the estimated accuracy of this location, in meters.
Altitudedouble. Get the altitude if available, in meters above the WGS 84 reference ellipsoid.
Bearingfloat. Get the bearing, in degrees.
[read-only]
static
CreatorAndroid.OS.IParcelableCreator.
ElapsedRealtimeNanoslong. Return the time of this fix, in elapsed real-time since system boot.
ExtrasAndroid.OS.Bundle. Returns additional provider-specific information about the location fix as a Bundle.
[read-only]
HasAccuracybool. True if this location has an accuracy.
[read-only]
HasAltitudebool. True if this location has an altitude.
[read-only]
HasBearingbool. True if this location has a bearing.
[read-only]
HasSpeedbool. True if this location has a speed.
[read-only]
IsFromMockProviderbool. Returns true if the Location came from a mock provider.
Latitudedouble. Get the latitude, in degrees.
Longitudedouble. Get the longitude, in degrees.
Providerstring. Returns the name of the provider that generated this fix.
Speedfloat. Get the speed if it is available, in meters/second over ground.
Timelong. Return the UTC time of this fix, in milliseconds since January 1, 1970.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

BearingTo(Android.Locations.Location) : float
Returns the approximate initial bearing in degrees East of true North when traveling along the shortest path between this location and the given location.
static
Convert(string) : double
Converts a String in one of the formats described by FORMAT_DEGREES, FORMAT_MINUTES, or FORMAT_SECONDS into a double.
static
Convert(double, Android.Locations.Format) : string
Converts a coordinate to a String representation.
DescribeContents() : int
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
static
DistanceBetween(double, double, double, double, float[])
Computes the approximate distance in meters between two locations, and optionally the initial and final bearings of the shortest path between them.
DistanceTo(Android.Locations.Location) : float
Returns the approximate distance in meters between this location and the given location.
Dump(Android.Util.IPrinter, string)
RemoveAccuracy()
Remove the accuracy from this location.
RemoveAltitude()
Remove the altitude from this location.
RemoveBearing()
Remove the bearing from this location.
RemoveSpeed()
Remove the speed from this location.
Reset()
Clears the contents of the location.
Set(Android.Locations.Location)
Sets the contents of the location to the values from the given location.
WriteToParcel(Android.OS.Parcel, Android.OS.ParcelableWriteFlags)
Flatten this object in to a Parcel.