Inherited by ReverseGeoCoord.

Public Member Functions

 Coordinates ()
 Initializes a new instance of the Coordinates class. More...
 
 Coordinates (string latitude, string longitude)
 Initializes a new instance of the Coordinates class with the latitude and longitude supplied. More...
 
double[] ToGeoJson ()
 Convert these Coordinates into a GeoJSON lon/lat pair. More...
 
bool Equals (Coordinates coords)
 
bool SameAs (Coordinates coordsB, double tolerance=1)
 Compare 2 coords are the same. More...
 

Properties

string Lat[get, set]
 Gets or sets the latitude in decimal degrees or decimal degrees * 1E6 as a string. More...
 
string Lon[get, set]
 Gets or sets the longitude in decimal degrees or decimal degrees * 1E6 as a string. More...
 
string FormattedCoordinates[get]
 Gets the formatted Coordinates. More...
 

Detailed Description

Represents geographic coordinates, i.e. latitude and longitude.

Constructor & Destructor Documentation

◆ Coordinates() [1/2]

Initializes a new instance of the Coordinates class.

◆ Coordinates() [2/2]

Coordinates(string latitude,
string longitude 
)

Initializes a new instance of the Coordinates class with the latitude and longitude supplied.

Parameters
latitudeThe latitude in decimal degrees or decimal degrees * 1E6 as a string.
longitudeThe longitude in decimal degrees or decimal degrees * 1E6 as a string.

Member Function Documentation

◆ ToGeoJson()

double [] ToGeoJson()

Convert these Coordinates into a GeoJSON lon/lat pair.

Returns

◆ SameAs()

bool SameAs(Coordinates coordsB,
double tolerance = 1 
)

Compare 2 coords are the same.

Parameters
coordsBCoords B
toleranceTolerance distance in feet.
Returns

Property Documentation

◆ Lat

string Lat
getset

Gets or sets the latitude in decimal degrees or decimal degrees * 1E6 as a string.

◆ Lon

string Lon
getset

Gets or sets the longitude in decimal degrees or decimal degrees * 1E6 as a string.

◆ FormattedCoordinates

string FormattedCoordinates
get

Gets the formatted Coordinates.

The formatted Coordinates.