Function GeographicCoordinate.fromComponents
Make a geographic position from its latitude and longitude.
static GeographicCoordinate fromComponents(
const Latitude!T latitude,
const Longitude!T longitude
) pure nothrow @nogc @safe;
Use this two-dimensional coordinate for surface routes and map projections when no height is needed. Both arguments are already checked by their strong angle types. The result does not identify a datum or reference ellipsoid.
Example
Example constructing a geographic coordinate from strong angles.
import geodesy;
const point = GeographicCoordinate!double .fromComponents(
Latitude!double .fromDegrees(48.20849),
Longitude!double .fromDegrees(16.37208));
assert(point .latitude .degrees > 48.0);