angular6 - How to use geohash in Angular 6
问题描述
I am using angular google map to to create polygon and I need to convert the co-ordinates to geohash. I checked around but didn't find anything on angular regarding this, So please help out any help would be appreciated.
Thanks
解决方案
这里与角度无关。您可以使用任何适合您的 js/ts 库。
这是流行的库:https ://www.npmjs.com/package/latlon-geohash
为了在ts里面导入javascript
import * as gh from 'latlon-geohash';
唯一的事情是你不会有类型。但无论如何你都不需要它们
推荐阅读
- python - 如何使用 tkinter 在 GUI 中显示变量的值?
- python - MPC 控制器 Python
- c# - 从 OData POST 方法中删除查询选项
- jsf - ManagedBean 已弃用为命名 CDI,难以更新
- r - R 需要一个包 (hms) 来导入数据集。我安装软件包没有任何反应。如何正确安装?
- c++ - C/C++ 将 docker compose 服务解析为相同的 IP
- python - 在 Python 中对原始 RGGB 图像数组进行自定义切片
- objective-c - SceneKit – 如何将 MTL 纹理应用于 OBJ 文件?
- firebase - 未找到试图访问 my-app.firebaseapp.com 的站点
- javascript - 在 .map() 中解决承诺/执行异步操作