Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

API for the Ottawa EatSafe data

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 config
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Procfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
Octocat-spinner-32 eatsafe.rb
Octocat-spinner-32 geocoder.rb
Octocat-spinner-32 models.rb
Octocat-spinner-32 monkeys.rb
Octocat-spinner-32 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.