module Geo
Geo::Coord
is Ruby's library for handling [lat, lng] pairs of geographical coordinates. It provides most of basic functionality you may expect (storing and representing coordinate pair), as well as some geodesy math, like distances and azimuth, and comprehensive parsing/formatting features.
See Geo::Coord
class docs for full description and usage examples.