Show / Hide Table of Contents

Struct Coordinate

Represents a coordinate.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public struct Coordinate

Constructors

Coordinate(Single, Single)

Creates a new coordinate.

Declaration
public Coordinate(float latitude, float longitude)
Parameters
System.Single latitude

System.Single longitude

Coordinate(Single, Single, Int16)

Creates a new coordinate.

Declaration
public Coordinate(float latitude, float longitude, short elevation)
Parameters
System.Single latitude

System.Single longitude

System.Int16 elevation

Properties

Elevation

Gets or sets the elevation in meter.

Declaration
public short ? Elevation { get; set; }
Property Value
System.Nullable<System.Int16>

Latitude

Gets or sets the latitude.

Declaration
public float Latitude { get; set; }
Property Value
System.Single

Longitude

Gets or sets the longitude.

Declaration
public float Longitude { get; set; }
Property Value
System.Single

Methods

DistanceEstimateInMeter(Coordinate, Coordinate)

Returns an estimate of the distance between the two given coordinates.

Declaration
public static float DistanceEstimateInMeter(Coordinate coordinate1, Coordinate coordinate2)
Parameters
Coordinate coordinate1

Coordinate coordinate2

Returns
System.Single

Remarks

Accuraccy decreases with distance.

DistanceEstimateInMeter(List<Coordinate>)

Returns an estimate of the distance between the given sequence of coordinates.

Declaration
public static float DistanceEstimateInMeter(List<Coordinate> coordinates)
Parameters
System.Collections.Generic.List<Coordinate> coordinates

Returns
System.Single

DistanceEstimateInMeter(Single, Single, Single, Single)

Returns an estimate of the distance between the two given coordinates.

Declaration
public static float DistanceEstimateInMeter(float latitude1, float longitude1, float latitude2, float longitude2)
Parameters
System.Single latitude1

System.Single longitude1

System.Single latitude2

System.Single longitude2

Returns
System.Single

Remarks

Accuraccy decreases with distance.

OffsetWithDirection(Single, DirectionEnum)

Offsets this coordinate for a given distance in a given direction.

Declaration
public Coordinate OffsetWithDirection(float distance, DirectionEnum direction)
Parameters
System.Single distance

DirectionEnum direction

Returns
Coordinate

OffsetWithDistances(Single)

Offsets this coordinate with a given distance.

Declaration
public Coordinate OffsetWithDistances(float meter)
Parameters
System.Single meter

Returns
Coordinate

ToString()

Returns a description of this object.

Declaration
public override string ToString()
Returns
System.String

Overrides
System.ValueType.ToString()
Back to top Built by Itinero, MIT licensed.