Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
API for the Ottawa EatSafe data
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
config
.gitignore
.rvmrc
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
Rakefile
config.ru
eatsafe.rb
geocoder.rb
models.rb
monkeys.rb
scraper.rb

README.md

EatSafe API

A simple little app that describes the safety of Ottawa's restaurants in JSON.

Usage

Facility

/facility/:id

The complete facility record including location and inspections.

http://eatsafe-api.herokuapp.com/facility/32FBDA31-C784-4640-A2DF-AA7D934B7356

Nearby

/facilities/nearby

A list of facilities near the location given. The location can either be coordinates given as decimals in lat and lon or an address. A search term in q can be used to filter the query. A limit can also be provided (defaults to 25). The approximate distance in kilometers is provided for each facility.

http://eatsafe-api.herokuapp.com/facilities/nearby?lat=45.4437&lon=75.6932&limit=10

http://eatsafe-api.herokuapp.com/facilities/nearby?address=24%20Sussex,%20Ottawa&q=tim%20hortons

Search

/facilities/search

Searches through the facility names and provides up to 100 results.

http://eatsafe-api.herokuapp.com/facilities/search?q=subway

Credits

Written by Jonathan Rudenberg

References

iPhone App and Scrapers

EatSafe Ottawa

Something went wrong with that request. Please try again.