Click or drag to resize

Coordinate Constructor (Double, Double, DateTime, EagerLoad)

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

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public Coordinate(
	double lat,
	double longi,
	DateTime date,
	EagerLoad eagerLoad
)

Parameters

lat
Type: SystemDouble
signed latitude
longi
Type: SystemDouble
signed longitude
date
Type: SystemDateTime
DateTime you wish to use for celestial calculation
eagerLoad
Type: CoordinateSharpEagerLoad
Eager loading options
Examples
The following example demonstrates how to create a defined Coordinate object with defined eager loading options and a GeoDate.
//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