Mohd Mobeen
Mohd Mobeen

Reputation: 25

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

Upvotes: 2

Views: 695

Answers (1)

Derviş Kayımbaşıoğlu
Derviş Kayımbaşıoğlu

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

Related Questions