Method: GPX::Point#lon_lat
- Defined in:
- lib/gpx/point.rb
#lon_lat(delim = ', ') ⇒ Object
Returns the longitude and latitude (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).
53 54 55 |
# File 'lib/gpx/point.rb', line 53 def lon_lat(delim = ', ') "#{lon}#{delim}#{lat}" end |