Coordinate(Double, Double, DateTime, EagerLoad) Constructor

Creates a populated Coordinate object with specified eager load options and an assigned GeoDate.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 3.1.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public Coordinate(
	double lat,
	double longi,
	DateTime date,
	EagerLoad eagerLoad
)

Parameters

lat  Double
signed latitude
longi  Double
signed longitude
date  DateTime
DateTime you wish to use for celestial calculation
eagerLoad  EagerLoad
Eager loading options

Example

The following example demonstrates how to create a defined Coordinate object with defined eager loading options and a GeoDate.
C#
//Create a new EagerLoading object set to only
//eager load celestial calculations.
EagerLoading el = new EagerLoading(EagerLoadType.Celestial);
DateTime geoDate = new DateTime(2018, 2, 5, 10, 38, 22);

Coordinate c = new Coordinate(25, 25, geoDate, el);

See Also