-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find a codec for class com.mongodb.client.model.geojson.Point #169
Comments
Mongodb stitch is not supporting geo-queries. look their official doc here https://docs.mongodb.com/stitch/mongodb/mongodb-service-limitations/ |
Thanks for the info. This is pretty sad, because it makes location-based apps impossible. Well, I ended up implementing my own database anyways, since the Mongo Mobile SDK was a monster, way too big to be included in my app. Would love to see a light-weight version that supports GeoJSON, though, as this would be an ideal fit to my use-case. |
I hope this will be fix in future releases as mongodb-stitch is child in the industry. |
I did not use MongoDB at all. Instead I used a simple hash map for my purposes and calculate the nearest object by iterating over this map. This was ok, because there are never more than 20-30 objects in the vicinity. The objects themselves are retrieved from the server, where a "real MongoDB" supports geospatial queries. My use-case was to cache a selection of these objects locally on the device, to notify the user about objects in the vicinity when the app runs in background. I also thought about SQLlite as an alternative, but even this was kinda oversized for my purpose. The only big advantage MongoDB would have in this case is simplicity (for the queries). |
Due to the doc I haven't tried it in my mongodb stitch app. but when I trying to execute Geo queries like $near. it works perfectly... I'm wondering |
I'm trying to use MongoDB Mobile for GeoJSON data. Unfortunately, this does not seem to work out of the box. If I try to
find
a document based on anearSphere
query, I get this error:How can this codec be set-up?
The text was updated successfully, but these errors were encountered: