geolocation-latlng
ES6 class to work with Geolocation API latitude and longitude
Installation
# NPM
npm install geolocation-latlng --save
# Yarn
yarn add geolocation-latlng
Getting Started
; // Create an instancelet latLng = latitude longitude; // Pretty string methods available**latlnglatitude;latLnglongitude; // Get distance to another coordinatelatLng;
** Latitude and longitude are instance of the Coordinate class. Many formatting and utility methods are available on latitude and longitude.
Credits
The LatLng API was inspired by the Google Maps API as well as MapBox's API.
License
MIT License Copyright (c) 2018 Joel Colucci