首页 > 解决方案 > 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

标签: angular6angular7angular-google-mapsgeohashing

解决方案


这里与角度无关。您可以使用任何适合您的 js/ts 库。

这是流行的库:https ://www.npmjs.com/package/latlon-geohash

为了在ts里面导入javascript

 import * as gh from 'latlon-geohash';

唯一的事情是你不会有类型。但无论如何你都不需要它们


推荐阅读