Freigeben über


LocationExtensions.CalculateDistance Methode

Definition

Überlädt

CalculateDistance(Location, Location, DistanceUnits)

Erweiterung zum Berechnen der Entfernung vom Standort zu einem anderen Standort.

CalculateDistance(Location, Double, Double, DistanceUnits)

Erweiterung zum Berechnen der Entfernung vom Standort zu einem anderen Standort.

CalculateDistance(Location, Location, DistanceUnits)

Erweiterung zum Berechnen der Entfernung vom Standort zu einem anderen Standort.

public static double CalculateDistance (this Xamarin.Essentials.Location locationStart, Xamarin.Essentials.Location locationEnd, Xamarin.Essentials.DistanceUnits units);

Parameter

locationStart
Location

Startstandort, von dem aus berechnet werden soll.

locationEnd
Location

Endspeicherort, aus dem berechnet werden soll.

units
DistanceUnits

Einheiten, die während der Berechnung verwendet werden sollen.

Gibt zurück

System.Double

Entfernung in Einheiten zu zwei Orten.

Gilt für:

CalculateDistance(Location, Double, Double, DistanceUnits)

Erweiterung zum Berechnen der Entfernung vom Standort zu einem anderen Standort.

public static double CalculateDistance (this Xamarin.Essentials.Location locationStart, double latitudeEnd, double longitudeEnd, Xamarin.Essentials.DistanceUnits units);

Parameter

locationStart
Location

Startstandort, von dem aus berechnet werden soll.

latitudeEnd
System.Double

End-Breitengrad, aus dem berechnet werden soll.

longitudeEnd
System.Double

Enden Sie den Längengrad, aus dem berechnet werden soll.

units
DistanceUnits

Zu verwendende Einheiten.

Gibt zurück

System.Double

Berechneter Abstand.

Gilt für: