![]() ![]() ![]() If you have more than one geospatial index on the collection, use the keys parameter to specify which field to use in the calculation. Obrigado por contribuir com o Stack Overflow em Português! Certifique-se de responder à pergunta.Entre em detalhes sobre a sua solução e compartilhe o que você descobriu. GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together. no geo indices for geonearĭismiss Join GitHub today. Separately: You're calling map and within the map callback, you're calling setState and not returning any value, so you're mapping every entry to undefined you're also not using the return value of map at all (you're returning it out of then, but nothing uses the resulting promise, so it goes unused). Now, if what you are thinking is that you would like the functionality of -geodist- or -geonear- (my preference over -nearstat-), but with distances calculated on a plane rather than on the earth's surface, my guess is that it might be possible to hack the distance functions inside those packages, but that's a question for someone other than me. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. options allows you to specify such things as sort, skip, limit and fields, in addition to the meteor-specific reactive and transform.ĭismiss Join GitHub today. find takes up to two parameters: a selector object, and an options object. Meteor's collection API is somewhat different from that of the mongo API. ![]() If using a 2dsphere index, you can specify the point as either a GeoJSON point or legacy coordinate pair. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information.įield Type Description near: GeoJSON point or legacy coordinate pair: The point for which to find the closest documents. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |