Skip to main content

formatLatitude

Formats a latitude with a hemisphere letter, for example "26.20410° S". The digits keep a dot in every language so the text reads back through parseCoordinates.

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

Signature​

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

function formatLatitude(latitude: number, hemispheres: Hemispheres): string;

Parameters​

  • latitude (number)
  • hemispheres (Hemispheres)

Returns​

string

See also​

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