mongodb - GeoLocation API Calls against an EVE RESTful API -


i can store geolocation data mongodb eve restful api server running. store data like:

loc : {   lng: 13.01111,   lat: 51.01111 } 

validation etc. works nicely.

but: unable find way geolocation data out of rest api. there sample queries on there working fine @ command-line, there seems no way query api appropriate way.

  1. is there way throw mongodb queries against rest api or
  2. which prefered way customize api such purpose.

to make things clear: there 2d index , geowithin queriey @ mongo-cmd working fine. it's how query via rest api.

it's not mentioned should supported. i'm not geo stuff tried issue $near query , returned operation failure because database missing necessary 2dindex. means command correctly passed database.

if using rest client postman syntax should (i'm using $near simplicity):

?where={"loc": {"$near": {"$geometry":{"type": "point", "coordinates": [13,51]}}, "$maxdistance": 100}} 

if using app.get method remember json.loads query. hope helps.


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? -