coordinate-formats
v3.1.0
Published
A library for parsing, validating and stringifying geographical coordinates of various formats.
Downloads
45
Readme
coordinate-formats
A library for parsing, validating and stringifying geographical coordinates of various formats.
Features
🤔 Parses possible coordinates of different formats if the received input is ambigious. By default the following formats are recognized:
- Decimal Degrees (Lat/Lon)
- Degrees Minutes
- Degrees Minutes Seconds
- Open Location Code
- OpenStreetMap URL
- Google Maps URL
⚙️ Uses sensible defaults i.e. for parsing confusable unicode characters.
🗺️ Made to integrate easily with mapping libraries like Leaflet.js and Mapbox GL JS.
💡 Written in TypeScript for a fully typed API.
🏗️ Provides utilities and for adding custom coordinate formats.
Installation
npm i coordinate-formats
Documentation
See the official docs
Development
In order to start with the development, clone the repository and run:
Install npm dependencies:
npm install
Run the development environment:
npm start