Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 578 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 578 Bytes

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.