parse.com - Android Retrofit ParseSdk Geopoint -


i have place data in parse database. use retrofit find closet place given lat , longitude below link , , curl request.

https://parse.com/docs/rest/guide#geopoints-geo-queries

curl -x \   -h "x-parse-application-id: xxxxxx" \   -h "x-parse-rest-api-key: xxxxx" \   -g \   --data-urlencode 'limit=10' \   --data-urlencode 'where={     "location": {       "$nearsphere": {         "__type": "geopoint",         "latitude": 30.0,         "longitude": -20.0       }     }   }' \ 

how can convert above curl retrofit call ? think have use querymap somewhere , cannot figure out where. have far.

@get("/classes/place") void getplaces(@query("limit") integer limit,                callback<placesresult> callback); 

this request headers "x-parse-application-id: xxxxxx", "x-parse-rest-api-key: xxxxx" , form url encoded body @query("where") takes string.

you can put these headers in http call interceptor requests.

yes, can done querymap, of 2 query params.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -