Compartir a través de


Location.CalculateDistance Método

Definición

Sobrecargas

CalculateDistance(Location, Location, DistanceUnits)

Calcule la distancia entre dos ubicaciones.

CalculateDistance(Location, Double, Double, DistanceUnits)

Calcule la distancia entre dos ubicaciones.

CalculateDistance(Double, Double, Location, DistanceUnits)

Calcule la distancia entre dos ubicaciones.

CalculateDistance(Double, Double, Double, Double, DistanceUnits)

Calcule la distancia entre dos Location instancias.

CalculateDistance(Location, Location, DistanceUnits)

Source:
Location.shared.cs
Source:
Location.shared.cs

Calcule la distancia entre dos ubicaciones.

public:
 static double CalculateDistance(Microsoft::Maui::Devices::Sensors::Location ^ locationStart, Microsoft::Maui::Devices::Sensors::Location ^ locationEnd, Microsoft::Maui::Devices::Sensors::DistanceUnits units);
public static double CalculateDistance (Microsoft.Maui.Devices.Sensors.Location locationStart, Microsoft.Maui.Devices.Sensors.Location locationEnd, Microsoft.Maui.Devices.Sensors.DistanceUnits units);
static member CalculateDistance : Microsoft.Maui.Devices.Sensors.Location * Microsoft.Maui.Devices.Sensors.Location * Microsoft.Maui.Devices.Sensors.DistanceUnits -> double
Public Shared Function CalculateDistance (locationStart As Location, locationEnd As Location, units As DistanceUnits) As Double

Parámetros

locationStart
Location

Ubicación inicial.

locationEnd
Location

Ubicación final.

units
DistanceUnits

Unidad en la que se devuelve la distancia del resultado.

Devoluciones

Distancia entre dos ubicaciones de la unidad seleccionada.

Se aplica a

CalculateDistance(Location, Double, Double, DistanceUnits)

Source:
Location.shared.cs
Source:
Location.shared.cs

Calcule la distancia entre dos ubicaciones.

public:
 static double CalculateDistance(Microsoft::Maui::Devices::Sensors::Location ^ locationStart, double latitudeEnd, double longitudeEnd, Microsoft::Maui::Devices::Sensors::DistanceUnits units);
public static double CalculateDistance (Microsoft.Maui.Devices.Sensors.Location locationStart, double latitudeEnd, double longitudeEnd, Microsoft.Maui.Devices.Sensors.DistanceUnits units);
static member CalculateDistance : Microsoft.Maui.Devices.Sensors.Location * double * double * Microsoft.Maui.Devices.Sensors.DistanceUnits -> double
Public Shared Function CalculateDistance (locationStart As Location, latitudeEnd As Double, longitudeEnd As Double, units As DistanceUnits) As Double

Parámetros

locationStart
Location

Ubicación inicial.

latitudeEnd
Double

Coordenada de latitud de la ubicación final.

longitudeEnd
Double

Coordenada de longitud de la ubicación final.

units
DistanceUnits

Unidad en la que se devuelve la distancia del resultado.

Devoluciones

Distancia entre dos ubicaciones de la unidad seleccionada.

Se aplica a

CalculateDistance(Double, Double, Location, DistanceUnits)

Source:
Location.shared.cs
Source:
Location.shared.cs

Calcule la distancia entre dos ubicaciones.

public:
 static double CalculateDistance(double latitudeStart, double longitudeStart, Microsoft::Maui::Devices::Sensors::Location ^ locationEnd, Microsoft::Maui::Devices::Sensors::DistanceUnits units);
public static double CalculateDistance (double latitudeStart, double longitudeStart, Microsoft.Maui.Devices.Sensors.Location locationEnd, Microsoft.Maui.Devices.Sensors.DistanceUnits units);
static member CalculateDistance : double * double * Microsoft.Maui.Devices.Sensors.Location * Microsoft.Maui.Devices.Sensors.DistanceUnits -> double
Public Shared Function CalculateDistance (latitudeStart As Double, longitudeStart As Double, locationEnd As Location, units As DistanceUnits) As Double

Parámetros

latitudeStart
Double

Coordenada de latitud de la ubicación inicial.

longitudeStart
Double

Coordenada de longitud de la ubicación inicial.

locationEnd
Location

Ubicación final.

units
DistanceUnits

Unidad en la que se devuelve la distancia del resultado.

Devoluciones

Distancia entre dos ubicaciones de la unidad seleccionada.

Se aplica a

CalculateDistance(Double, Double, Double, Double, DistanceUnits)

Source:
Location.shared.cs
Source:
Location.shared.cs

Calcule la distancia entre dos Location instancias.

public:
 static double CalculateDistance(double latitudeStart, double longitudeStart, double latitudeEnd, double longitudeEnd, Microsoft::Maui::Devices::Sensors::DistanceUnits units);
public static double CalculateDistance (double latitudeStart, double longitudeStart, double latitudeEnd, double longitudeEnd, Microsoft.Maui.Devices.Sensors.DistanceUnits units);
static member CalculateDistance : double * double * double * double * Microsoft.Maui.Devices.Sensors.DistanceUnits -> double
Public Shared Function CalculateDistance (latitudeStart As Double, longitudeStart As Double, latitudeEnd As Double, longitudeEnd As Double, units As DistanceUnits) As Double

Parámetros

latitudeStart
Double

Coordenada de latitud de la ubicación inicial.

longitudeStart
Double

Coordenada de longitud de la ubicación inicial.

latitudeEnd
Double

Coordenada de latitud de la ubicación final.

longitudeEnd
Double

Coordenada de longitud de la ubicación final.

units
DistanceUnits

Unidad en la que se devuelve la distancia del resultado.

Devoluciones

Distancia entre dos ubicaciones de la unidad seleccionada.

Se aplica a