LocationExtensions.CalculateDistance Methode

Definition

Überlädt

Name Beschreibung
CalculateDistance(Location, Location, DistanceUnits)

Erweiterung zum Berechnen der Entfernung von Standort zu einem anderen Ort.

CalculateDistance(Location, Double, Double, DistanceUnits)

Erweiterung zum Berechnen der Entfernung von Standort zu einem anderen Ort.

CalculateDistance(Location, Location, DistanceUnits)

Erweiterung zum Berechnen der Entfernung von Standort zu einem anderen Ort.

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

Parameter

locationStart
Location

Startort, aus dem berechnet werden soll.

locationEnd
Location

Endposition, aus der berechnet werden soll.

units
DistanceUnits

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

Gibt zurück

System.Double

Abstand in Einheiten von zwei Standorten.

Gilt für:

CalculateDistance(Location, Double, Double, DistanceUnits)

Erweiterung zum Berechnen der Entfernung von Standort zu einem anderen Ort.

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

Parameter

locationStart
Location

Startort, aus dem berechnet werden soll.

latitudeEnd
System.Double

End latitude to calculate from.

longitudeEnd
System.Double

End-Längengrad, aus dem berechnet werden soll.

units
DistanceUnits

Zu verwendende Einheiten.

Gibt zurück

System.Double

Berechneter Abstand.

Gilt für: