Share via


Location Constructors

Definition

Overloads

Location()

Default constructor.

Location(Location)

Copy constructor.

Location(Double, Double)

Parametrized constructor with latitude and longitude parameters.

Location(Double, Double, DateTimeOffset)

Parametrized constructor with latitude, longitude and timestamp parameters.

Location(Double, Double, Double)

Parametrized constructor with latitude, longitude and altitude parameters.

Location()

Default constructor.

public Location ();

Applies to

Location(Location)

Copy constructor.

public Location (Xamarin.Essentials.Location point);

Parameters

point
Location

Location to copy values from.

Applies to

Location(Double, Double)

Parametrized constructor with latitude and longitude parameters.

public Location (double latitude, double longitude);

Parameters

latitude
System.Double

Default latitude for location.

longitude
System.Double

Default longitude for location.

Applies to

Location(Double, Double, DateTimeOffset)

Parametrized constructor with latitude, longitude and timestamp parameters.

public Location (double latitude, double longitude, DateTimeOffset timestamp);

Parameters

latitude
System.Double

Default latitude for location.

longitude
System.Double

Default longitude for location.

timestamp
System.DateTimeOffset

Timestamp for the location (Utc based).

Applies to

Location(Double, Double, Double)

Parametrized constructor with latitude, longitude and altitude parameters.

public Location (double latitude, double longitude, double altitude);

Parameters

latitude
System.Double

Default latitude for location.

longitude
System.Double

Default longitude for location.

altitude
System.Double

Applies to