MongoDB Lat Long issue -


while running query

{"geo" : { "$geowithin" : { "$centersphere" : [ [ 37.7561438 , -122.4325682] , 0.07583417593528817]}}}

i getting following error

caused by: com.mongodb.mongoexception: point (37.7561,-122.433) must in earth-like bounds of long : [-180, 180], lat : [-90, 90]

i not sure why error occurred. please me on this.

thank you.

i think have lat , lon turned

please try:

{"geo" : { "$geowithin" : { "$centersphere" : [ [ -122.4325682, 37.7561438] , 0.07583417593528817]}}} 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -