Function GeographicCoordinate.fromComponents

Construct from strong latitude and longitude values.

static GeographicCoordinate fromComponents(
  const Latitude!T latitude,
  const Longitude!T longitude
) pure nothrow @nogc @safe;

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);