Skip to content

Tricertops/GEOCoordinateFormatter

Repository files navigation

NSFormatter for Geographic Coordinates

Class for formatting CLCoordinateLocation2D to human-readable format in degrees, minutes, and seconds.

  • Customizable separators, unit symbols, and cardinal directions.
  • Customizable precision and unit range.
  • Accepts CLCoordinateLocation2D, CLLocationDegrees, and even Array of two numbers.
  • Example outputs:
    • 56.246°
    • 27° 43.745′ W
    • 49° 56′ 14″ S, 15° 37′ 42″ E
    • 17 degrees 42 minutes 12 seconds North

Written in Swift, fully compatible with Objective-C.

Releases

No releases published

Packages

No packages published