Template:LocFormat

From BITPlan E-Bike Wiki
Revision as of 09:44, 19 January 2025 by Wf (talk | contribs)
Jump to navigation Jump to search

Template to format coordinates in decimal degrees without directional indicators.

Usage

{{LocFormat
|coordinates
|format=dd
|directional=no}}

Examples

Floats (format=float)

55.755786 N, 37.617633 W → 55.7557860, -37.6176330

Decimal Degrees (format=dd)

55.755786° N, 37.617633° W → 55.7557860°, -37.6176330°

Decimal Minutes (format=dm)

55° 45.3472' N, 37° 37.0580' W → 55° 45.3472', -37° 37.0580'

Degrees Minutes Seconds (format=dms)

55° 45' 20.83" N, 37° 37' 3.48" W → 55° 45' 20.83", -37° 37' 3.48"