Method: GPX::Point#lat_lon

Defined in:
lib/gpx/point.rb

#lat_lon(delim = ', ') ⇒ Object

Returns the latitude and longitude (in that order), separated by the given delimeter. This is useful for passing a point into another API (i.e. the Google Maps javascript API).



46
47
48
# File 'lib/gpx/point.rb', line 46

def lat_lon(delim = ', ')
  "#{lat}#{delim}#{lon}"
end