loaders ยป latLng

latLng() โ†’ object
latLngItems() โ†’ array
latLngList() โ†’ array

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

enolocation: 36.987094, -25.091719
javascriptconst document = eno.parse(input);

document.latLng('location');
  // returns {
  //   lat:  36.987094,
  //   lng: -25.091719
  // }