diff --git a/views/api.haml b/views/api.haml index bc0df88..625586f 100644 --- a/views/api.haml +++ b/views/api.haml @@ -17,8 +17,10 @@ %code GET http://tweetmycouncil.herokuapp.com/api/authorities.json - %h2 Find authority by location (latitude and longitude) + %h2 Find authority by location (suburb, postcode, or a longitude,latitude pair) %code - GET http://tweetmycouncil.herokuapp.com/api/authority.json?lat=-33.8736&lng=151.2076 + GET http://tweetmycouncil.herokuapp.com/api/authority.json?location=sydney + GET http://tweetmycouncil.herokuapp.com/api/authority.json?location=2000 + GET http://tweetmycouncil.herokuapp.com/api/authority.json?location=151.2076,-33.8736