objective c - Parse geo-queries always empty -



objective c - Parse geo-queries always empty -

im trying parse's geo-query scheme work. on info browser, have installation key "location" of type geo-point has geo-point latitude 30.27263636013176 , longitude -97.75766807716373 set in it.

however, if seek query next code, "results":[].

curl -x \ -h "x-parse-application-id: myappkey" \ -h "x-parse-rest-api-key: myapikey" \ -g \ --data-urlencode 'limit=10' \ --data-urlencode 'where={ "location": { "$nearsphere": { "__type": "geopoint", "latitude": 30, "longitude": -97 } } }' \ https://api.parse.com/1/classes/placeobject

note query running successfully; there no errors. problem installation have should come up.

if alter latitude , longitude in query latitude , longitude shown in info browser, still empty results. reason this? not possible query device installations near point?

the installation class can't queried client, reason. much sensitive info stored in installation class allow querying client.

either move location property class can query, or query in cloud function.

you can query in cloud code if utilize parse.cloud.usemasterkey();, though recommend using different class store location.

objective-c parse.com

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -