Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 617 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 617 Bytes

About

This is a ES6 implementation of the Open Location Code ported from the JS version :

Forked from the TypeScript implementation by Jonas Mosimann:

https://github.com/tspoke/typescript-open-location-code/

Original JS version:

https://github.com/google/open-location-code/tree/master/js

Usage

Same usage as the Javascript version :

OpenLocationCode.encode(LATITUDE, LONGITUDE);
OpenLocationCode.encode(LATITUDE, LONGITUDE, PRECISION);
OpenLocationCode.decode("8CVXFFF4+W7")
OpenLocationCode.recoverNearest(SHORT_CODE, LATITUDE, LONGITUDE)

For more examples, please refer to the JS repository.