-
Notifications
You must be signed in to change notification settings - Fork 51
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
geoNear doesn't work #2
Comments
Hi @mgpeng the file I'm sharing is the location.js file that should be in the api_server folder I'm currently following the way it was done in the first version of this book but I use nearly all of the updated versions of the frameworks, so I will share a screenshot of my package.json too |
@YuenEsc I am now going thru the book myself and I hit the ame problem. I copied your code, but when i enter the URL with th coordinates , results comes back empty . []. when i print the point.coordinates.lng and point.coordinates.lat, I am getting value as undefined. any idea what could i be doing wrong? |
nevermind @YuenEsc . i figured it out. :) i had my lng and lat backwards in my db. Beginners mistake, I am still really new to programming in general. This book is awesome though!!! I am getting MEANer each day! |
I'm still having the Loc.geoNear is not a function issue all of my locations have a long/lat of the same value (41.702741 & -71.430348) i receive the error |
Hello ! So for other people that would get to read this amazing book, here are some minor corrections in Chapter 06.
|
Hi, Simon
I followed your book to code few days, it is amazing, but in chapter 6,
geoNear is deprecated in new version Mongodb and Mongoose, and I checked
all documents , there are not any details about geoNear even near and nearSpherical,
and I tried aggregate, query, and I still found solution. Simon, can you help us to fix this ?
The text was updated successfully, but these errors were encountered: