{"id":8807198,"date":"2017-02-15T10:41:42","date_gmt":"2017-02-15T10:41:42","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/rest-api-with-geolocation-queries\/"},"modified":"2017-02-15T10:41:42","modified_gmt":"2017-02-15T10:41:42","slug":"rest-api-with-geolocation-queries","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/rest-api-with-geolocation-queries\/","title":{"rendered":"REST API with geolocation queries"},"content":{"rendered":"<p>Hello everyone!<br \/>\nI&#8217;m developing a geolocation based site with posts with custom-field containing geocoordinates of the post.<br \/>\nI need to make these posts available on an app. Is there a way to retrieve posts using geolocation queries? For example giving my current location and a radius and obtaining all posts that have a distance from my location less or equal to that radius.<\/p>\n<p>Thanks in advance.<\/p>\n","protected":false},"template":"","class_list":["post-8807198","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8807198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8807198\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8807198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}