Reputation: 25
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
Upvotes: 2
Views: 695
Reputation: 30635
There is nothing related with angular here. You can use any js/ts library which works for you.
Here is popular library : https://www.npmjs.com/package/latlon-geohash
In order to import javascript inside ts
import * as gh from 'latlon-geohash';
The only thing is you wont have types. But you don't need them anyway
Upvotes: 3