Skip to content

Commit

Permalink
Update api docs with location param change.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavincarr committed Dec 5, 2011
1 parent d1c02b6 commit 4e1d35d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions views/api.haml
Expand Up @@ -17,8 +17,10 @@
%code
GET <a href="/api/authorities.json">http://tweetmycouncil.herokuapp.com/api/authorities.json</a>

%h2 Find authority by location (latitude and longitude)
%h2 Find authority by location (suburb, postcode, or a longitude,latitude pair)

%code
GET <a href="/api/authority.json?lat=-33.8736&lng=151.2076">http://tweetmycouncil.herokuapp.com/api/authority.json?lat=-33.8736&lng=151.2076</a>
GET <a href="/api/authority.json?location=sydney">http://tweetmycouncil.herokuapp.com/api/authority.json?location=sydney</a>
GET <a href="/api/authority.json?location=2000">http://tweetmycouncil.herokuapp.com/api/authority.json?location=2000</a>
GET <a href="/api/authority.json?location=151.2076,-33.8736">http://tweetmycouncil.herokuapp.com/api/authority.json?location=151.2076,-33.8736</a>

0 comments on commit 4e1d35d

Please sign in to comment.