-
Notifications
You must be signed in to change notification settings - Fork 4
API Syntax
To get a paginated listing of playgrounds currently in the system: http://host/playgrounds/page.json/page#/#perpage http://projectplay.herokuapp.com/playgrounds/page.json/1/10 where 1 is the page number, and 10 is the number of listings per page
OR you can enter it in as a query string like: http://projectplay.herokuapp.com/playgrounds/page.json?page=1&numperpage=10
To get a list of playgrounds based on a supplied address within a certain radius (in feet): Example: - if you leave radius = 0, then it will just find all closest playgrounds (50KM radius) and list them by proximity - the .json will return json results, with no .format, it will return an HTML page http://projectplay.herokuapp.com/playgrounds/getPlaygrounds.json?address=5%20East%20Reed%20Avenue,%20Alexandria,%20VA&radius=1000
To get the Google Places Page URL for a playground: Example - find it for Playground named Simpson Stadium Park: http://projectplay.herokuapp.com/playgrounds/getPlacesURLforPlayground.json?name=Simpson%20Stadium%20Park
- It will return an empty string if there is no GPlaces page, otherwise it will return the URL