Struct LatLng
- Namespace
- Tudormobile.Strava.Model
- Assembly
- Tudormobile.Strava.dll
Represents a geographic coordinate with latitude and longitude.
public struct LatLng
- Inherited Members
Fields
Latitude
Gets or sets the latitude in decimal degrees.
public double Latitude
Field Value
Remarks
Valid range is -90 to 90 degrees, where positive values represent north and negative values represent south.
Longitude
Gets or sets the longitude in decimal degrees.
public double Longitude
Field Value
Remarks
Valid range is -180 to 180 degrees, where positive values represent east and negative values represent west.
Operators
implicit operator LatLng((double Latitude, double Longitude))
Converts a tuple containing latitude and longitude values to a LatLng instance.
public static implicit operator LatLng((double Latitude, double Longitude) coords)
Parameters
coords(double lat, double lon)A tuple where the first element is the latitude and the second element is the longitude, both specified as double-precision floating-point values.
Returns
Remarks
This operator enables implicit conversion from a tuple to a LatLng, allowing for concise initialization in assignment and method calls.