2

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

Mohd Mobeen
  • 25
  • 1
  • 5

1 Answers1

3

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

Derviş Kayımbaşıoğlu
  • 28,492
  • 4
  • 50
  • 72