【文件属性】:
文件名称:geohash:为方便起见,支持MongoDB,ElasticSearch和GeoJSON格式的GeoHash编码的代码
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-16 12:24:12
JavaScript
GeoHash编码/解码
有关GeoHash的更多信息
支持MongoDB,ElasticSearch和GeoJSON格式的GeoHash编码/解码:
GeoJSON
MongoDB
Elasticsearch
{ longitude, latitude }对象在某些软件包中常用
受启发。
安装
yarn add @jollie/geohash
或者
npm install @jollie/geohash
用法
import GeoHash from '@jollie/geohash' ;
// ... coordinates example
const longitude = 4.2122126 ;
const latitude = 36.4511093 ;
// Encode a GeoJSON Point
GeoHash . encode ( {
type : 'F
【文件预览】:
geohash-master
----.gitignore(69B)
----package.json(890B)
----.travis.yml(307B)
----index.test.js(3KB)
----LICENSE(1KB)
----index.js(7KB)
----README.md(4KB)
----.npmignore(326B)