Querying a DB for geopoint data
What I am trying to do, broadly, is delete geopoint A from a DB collection of geopoints if the app user is at geopoint A.
My approach:
Use geolocation service to store user's lat and lng in local storage
Use lat and lng from local storage to feed a query of the DB and return the _id of the geopoint they are at (if it matches one in the DB)
Use the _id to delete the geopoint via a delete service.
My problem is with the DB query service. I can query the DB for strings, but I don't know how to query using geopoint data.
Anyone have any pointers please?
Thanks