BetaNYC / citygram-services-nyc

Web content transformation proxies for open data API's
https://citygram-services-nyc.herokuapp.com/
4 stars 6 forks source link

Potholes - Highway #35

Open dirkkelly opened 9 years ago

dirkkelly commented 9 years ago

User Story: As a highway driver, I would like to get highway pothole notifications as well general Pothole information

Identify Data:

Complaint Type Descriptor
Highway Condition Pothole - Highway
Street Condition Pothole
Bridge Condition Pothole

Ruby / SQL:

query = {
  '$limit' => 1000,
  '$order' => 'created_date DESC',
  '$where' => <<-WHERE.oneline
    created_date >= '#{7.days.ago.iso8601}' AND
    longitude IS NOT NULL AND
    latitude IS NOT NULL AND
    descriptor LIKE 'Pothole%' AND
    unique_key IS NOT NULL
  WHERE
}

Issue Icon:

noun_753 1