All Projects → Placekey → placekey-js

Placekey / placekey-js

Licence: Apache-2.0 license
placekey.io

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to placekey-js

placekey-py
placekey.io
Stars: ✭ 49 (+157.89%)
Mutual labels:  h3, geospatial, placekey
h3-r
R bindings for H3, a hierarchical hexagonal geospatial indexing system
Stars: ✭ 57 (+200%)
Mutual labels:  h3, geospatial
H3
Hexagonal hierarchical geospatial indexing system
Stars: ✭ 3,167 (+16568.42%)
Mutual labels:  h3, geospatial
H3.net
Port of Uber's H3 to .NET
Stars: ✭ 27 (+42.11%)
Mutual labels:  h3, geospatial
h3ron
Rust crates for the H3 geospatial indexing system
Stars: ✭ 52 (+173.68%)
Mutual labels:  h3, geospatial
rstac
R Client Library for SpatioTemporal Asset Catalog
Stars: ✭ 43 (+126.32%)
Mutual labels:  geospatial
miZy
miZy - tiny fast embedded linux
Stars: ✭ 106 (+457.89%)
Mutual labels:  h3
menu-hamburger
🍔 A clean, simple and easy to use library to create a Menu Hamburger
Stars: ✭ 17 (-10.53%)
Mutual labels:  javascript-library
R-Geospatial-Fundamentals
This is the repository for D-Lab's Geospatial Fundamentals in R with sf workshop.
Stars: ✭ 42 (+121.05%)
Mutual labels:  geospatial
animusjs
🎆 AnimusJS is the solution for combine JS and CSS animations.
Stars: ✭ 42 (+121.05%)
Mutual labels:  javascript-library
Amino.JS
A powerful JavaScript library for interacting with the Amino API 🌟
Stars: ✭ 25 (+31.58%)
Mutual labels:  javascript-library
html-to-react
A lightweight library that converts raw HTML to a React DOM structure.
Stars: ✭ 696 (+3563.16%)
Mutual labels:  javascript-library
costa-rica-iban
Funciones utiles para extraer y validar información general de números de cuenta IBAN de Costa Rica
Stars: ✭ 16 (-15.79%)
Mutual labels:  javascript-library
iFrameX
Iframe generator with dynamic content injection like HTML, Javascript, CSS, etc. and two ways communication, parent <-> iframe.
Stars: ✭ 18 (-5.26%)
Mutual labels:  javascript-library
h3dmx512-zip
Images for Allwinner H2+/H3 DMX512 / RDM / Art-Net / sACN / USBPro / Pixel / WS28xx / TCNet / SMPTE
Stars: ✭ 57 (+200%)
Mutual labels:  h3
opentopodata
Open alternative to the Google Elevation API!
Stars: ✭ 163 (+757.89%)
Mutual labels:  geospatial
animate
PixiJS runtime library for content from Adobe Animate CC
Stars: ✭ 142 (+647.37%)
Mutual labels:  javascript-library
leaflet.esri
ESRI Plugin for Leaflet R Package
Stars: ✭ 31 (+63.16%)
Mutual labels:  geospatial
glaes
Geospatial Land Availability for Energy Systems
Stars: ✭ 27 (+42.11%)
Mutual labels:  geospatial
xGallerify
A lightweight, responsive, smart gallery based on jQuery
Stars: ✭ 52 (+173.68%)
Mutual labels:  javascript-library

@placekey/placekey

npm version

A JavaScript library for working with Placekeys.

The source code for this library can be found here, and documentation for the Placekey service API can be found here. The Placekey design specification is available here. The details in Placekey encoding is here. We welcome your feedback.

To install:

npm install @placekey/placekey

Or with yarn:

yarn add @placekey/placekey

Usage

Note: Be careful to note that like the H3 API, the placekey-js API use latitude, longitude order.

Failure to account of this order when interoperating with other geospatial software is a common source of errors, for more information see lon lat lon lat.

import {geoToPlacekey} from '@placekey/placekey';
const [lat, long] = [0.0, 0.0];
geoToPlacekey(lat, long); // => '@dvt-smp-tvz';
import {placekeyToGeo} from '@placekey/placekey';
placekeyToGeo('@qjk-m7r-whq'); // => [-46.0033934397115, -155.09988163615031]
import {placekeyToH3} from '@placekey/placekey';
placekeyToH3('@dpr-6q6-73q'); // => '8a734e64992ffff'
import {h3ToPlacekey} from '@placekey/placekey';
h3ToPlacekey('8a734e64992ffff');
('@dpr-6q6-73q');

An upper bound on the maximal distance in meters between two Placekeys based on the length of their shared prefix is provided by getPlacekeyPrefixDistanceDict().

{
  1: 12740000.0,
  2: 2777000.0,
  3: 1065000.0,
  4: 152400.0,
  5: 21770.0,
  6: 8227.0,
  7: 1176.0,
  8: 444.3,
  9: 63.47
}

Contributing

To build and test:

yarn bootstrap # install and build
yarn test # run tests

To run benchmarks:

yarn bench

PRs should include tests and, if necessary, documentation updates. To make sure non-trivial PRs will be accepted, consider opening an issue first and describe the changes you want to make before completing the work.

License and Attribution

Provided as open source under the Apache 2 license.

The placekey-js JavaScript library is provided and maintained by Unfolded, Inc.

Unfolded

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].