0

I am currently using mongoDB locally for an application that uses GeoJson and I am considering switching to firestore. However, I do not seem to find information on its support for GeoSearches. Is it supported in firestore?

UPDATE: For python

Francesco
  • 481
  • 2
  • 4
  • 16

1 Answers1

0

Support for geoqueries is currently not natively built into Firestore, but there's a documented workaround here.

There are also many third-party libraries for various platforms implementing the same approach, so I'd recommend searching for one for Python.

Also see:

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • Thanks. Should have stated for python in my question, sorry. Looks like I am stuck with MongoDB and with a local server (since Atlas is also an issue for GeoSearch) – Francesco Jan 28 '22 at 15:55
  • Even thought the code samples are only for Android, iOS, and JavaScript, the solutions works the same across all platforms, so I recommend giving it a try in Python yourself. All you really need is a way to translate a lat/lon to a geohash, which I assume [exists in python too](https://www.google.com/search?q=python+geohash+example). – Frank van Puffelen Jan 28 '22 at 16:02
  • I know, I have already embedded a geohash of sort in my code as the original app was in erlang andIi needed to so geo search myself, so I might just revert back to that actually. – Francesco Jan 28 '22 at 16:18