https://github.com/tmcw/coords
parse and generate decimal and sexagesimal latitude longitude coordinates
https://github.com/tmcw/coords
Last synced: 9 months ago
JSON representation
parse and generate decimal and sexagesimal latitude longitude coordinates
- Host: GitHub
- URL: https://github.com/tmcw/coords
- Owner: tmcw
- License: bsd-3-clause
- Created: 2013-01-01T23:56:10.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2017-04-10T19:41:29.000Z (over 9 years ago)
- Last Synced: 2025-02-06T14:11:50.338Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Parse more forms of latitude, longitude, including the
[sexagesimal](http://en.wikipedia.org/wiki/Sexagesimal) form.
```javascript
coords.parse('66° 30′ 0″ N');
// 66.5
coords.parse('66° 30′ 0″ S');
// -66.5
coords.parse('66.5');
// 66.5
```