DEV Community

Discussion on: Geospatial Queries on FaunaDB

Collapse
 
realindiaherald profile image
IHG

Hi There,

I am trying to generated geohash in c#, but not able to do that, can you help us in doing this.

Another need of help we are in with your faunadb-geo plugin, isn't it available in pure js or C# rather the node one.

Collapse
 
potato_potaro profile image
Taro Woollett-Chiba

Hey, thanks for the comment!

At the moment, my package doesn't have any support for C#, however the general approach (i.e. prefix searching) is still applicable. I'd google/search for a C# implementation of an S2 library and then figure out how to convert given S2 Cell IDs into "quadkeys". I imagine there must be a C# library for S2 on the internet somewhere, however the quadkey conversion will likely rely on your own implementation.

As for a pure JS version of my geo package, it's definitely on my radar, however, I'm a bit occupied with other tasks. I do plan on getting to it at some point in the near future. Thank again for reading and checking out my work, let me know if you have any other questions. Cheers :)