Eno::Loaders ยป #lat_lng

lat_lng โ†’ hash
lat_lng_items โ†’ array
lat_lng_list โ†’ array

Accepts lat/lng coordinates of the form dd.ddddd, dd.ddddd (but with any number of decimal digits), returns a Hash (see example below) (or raises an error for invalid values).

enolocation: 36.987094, -25.091719
rubydocument = Eno.parse(input)

document.lat_lng('location')
  #=>
  # {
  #   lat:  36.987094,
  #   lng: -25.091719
  # }