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

CONSTRUCTION Compliant #60

Open SokhnaVor opened 9 years ago

SokhnaVor commented 9 years ago

User Story: Whether I walk or drive, I'd like to know where construction takes place so that I can avoid and reach my destination quickly through the most accessible route.

Identify Data:

Complaint Type Descriptor
CONSTRUCTION ROOF
CONSTRUCTION VACANT APARTMENT
CONSTRUCTION PAVEMENT
CONSTRUCTION ELEVATOR
CONSTRUCTION RAIN LEADER

Ruby / SQL query = { '$limit' => 1000, '$order' => 'created_date DESC', '$where' => <<-WHERE.oneline created_date >= '#{SpyGlass::Utils.last_week_floating_timestamp}' AND longitude IS NOT NULL AND latitude IS NOT NULL AND complaint_type LIKE 'CONSTRUCTION%' AND unique_key IS NOT NULL WHERE } **Issue Icon: construction