I'm working on a Phoenix project that stores lat/lng values in MongoDB, and needs to use MongoDB's built in Geo queries in order to query for records based on the distance between two points.
I've been looking around all morning, and have found this Geo repo, which is targeted at Postgres. I'd rather not have to switch to Postgres unless there's no other option.
Does anyone have any experience with Ecto/MongoDB and Geo queries and can point me in the right direction, or know if it's currently even possible with Ecto?
One possible alternative might be to set up a simple nodejs server with mongoose to handle the geo queries, and then have Phoenix hand off to that service when necessary? But I would obviously prefer an Ecto based solution if one's available.
Thanks
Paul