Skip to main content

formatLongitude

Formats a longitude with a hemisphere letter, for example "28.04730° E".

This is a function exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import { formatLongitude } from "@mapcairn/core";

function formatLongitude(longitude: number, hemispheres: Hemispheres): string;

Parameters​

  • longitude (number)
  • hemispheres (Hemispheres)

Returns​

string

See also​

Source: packages/core/src/format/format.ts:116