Editing Community Data Science Workshops (Spring 2015)/Day 3 Projects/Civic data
From CommunityData
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
[[File:Socrata-square-color.png|right|250px]] | |||
[[File:Socrata-square-color.png|right| | [[File:SeattleGovLogoHome.png|right|250px]] | ||
[[File:SeattleGovLogoHome.png|right| | |||
__NOTOC__ | __NOTOC__ | ||
== Building and visualizing datasets using data.seattle.gov and Google apps == | == Building and visualizing datasets using data.seattle.gov and Google apps == | ||
In this project, we will explore a few ways to gather data from [https://data.seattle.gov data.seattle.gov] using the [[w:Socrata|Socrata]] API, the Google Maps API, and Google Fusion tables. | In this project, we will explore a few ways to gather data from [https://data.seattle.gov data.seattle.gov] using the [[w:Socrata|Socrata]] API, the Google Maps API, and Google Fusion tables. | ||
=== Goals === | === Goals === | ||
Line 18: | Line 11: | ||
* Combine those data with neighborhood data from the Google Maps API | * Combine those data with neighborhood data from the Google Maps API | ||
* Download the results in a CSV file | * Download the results in a CSV file | ||
* Upload results to Google's | * Upload results to Google's Fu | ||
=== Download the Day 3 Socrata project === | |||
<font size="+1">[http://jtmorgan.net/cdsw/may9scripts.zip Click here to download the Socrata scripts]</font> | |||
If you are confused by these steps, go back and refresh your memory with the [[Community Data Science Workshops (Spring 2015)/Day 0 setup and tutorial|Day 0 setup and tutorial]] and [[Community Data Science Workshops (Spring 2015)/Day 0 tutorial|Day 0 tutorial]] | |||
(Estimated time: 10 minutes) | |||
=== Topics to cover === | |||
* explain Socrata open data platform, exists on other government websites | |||
* navigate to [http://en.wikipedia.org/w/api.php api page] and show the documentation, point out examples | |||
* introduce the [https://www.hurl.it API sandbox] as a tool for building queries | |||
=== Example questions === | |||
* What Seattle neighborhood has the most art galleries? - [http://jtmorgan.net/cdsw/neighborhood_culture1.py neighborhood_culture1.py] | |||
* What Seattle neighborhood has the most square feet devoted to arts & culture? - [http://jtmorgan.net/cdsw/neighborhood_culture2.py neighborhood_culture2.py] | |||
* Which trail gets more bike traffic per month--the [[w:Burke-Gilman_Trail|Burke Gilman]] or the [[w:Mountains_to_Sound_Greenway|Mountain to Sound Trail]]? - [http://jtmorgan.net/cdsw/traffic_counter1.py traffic_counter1.py], [http://jtmorgan.net/cdsw/traffic_counter2.py traffic_counter2.py] | |||
* Do people use the trails less when it's cold? [http://jtmorgan.net/cdsw/monthly_weather.py monthly_weather.py] | |||
* Does the Burke-Gilman get more bike or pedestrian traffic? [http://jtmorgan.net/cdsw/bike_and_peds1.py bike_and_peds1.py] | |||
* What is the primary commute direction on the Burke Gilman? [http://jtmorgan.net/cdsw/bike_and_peds1.py bike_and_peds2.py] | |||
;Other example questions | |||
* What day of the week does the Burke Gilman have the most total traffic? | |||
* What day has the most pedestrian traffic? | |||
* What ''time of day'' has the most southbound traffic, on average? | |||
* How many shoplifting calls has SPD responded to this month so far? | |||
=== Resources === | === Resources === | ||
* About Google Fusion tables: https://support.google.com/fusiontables/answer/2571232 | * About Google Fusion tables: https://support.google.com/fusiontables/answer/2571232 | ||
* Google Fusion Tables mapmaking tutorial: https://support.google.com/fusiontables/answer/2527132?hl=en&topic=2573107&ctx=topic | * Google Fusion Tables mapmaking tutorial: https://support.google.com/fusiontables/answer/2527132?hl=en&topic=2573107&ctx=topic | ||
Line 62: | Line 50: | ||
:* writing API queries: http://dev.socrata.com/docs/queries.html | :* writing API queries: http://dev.socrata.com/docs/queries.html | ||
; | ;Data.seattle.gov datasets with lat/long or street addresses | ||
*[https://data.seattle.gov/Community/Seattle-Cultural-Space-Inventory/vsxr-aydq Seattle Cultural Space Inventory] | *[https://data.seattle.gov/Community/Seattle-Cultural-Space-Inventory/vsxr-aydq Seattle Cultural Space Inventory] | ||
*[https://data.seattle.gov/Transportation/MTS-Trail-west-of-I-90-Bridge/u38e-ybnc MTS trail bike/ped traffic] | *[https://data.seattle.gov/Transportation/MTS-Trail-west-of-I-90-Bridge/u38e-ybnc MTS trail bike/ped traffic] | ||
Line 79: | Line 67: | ||
* https://data.cityofchicago.org/ | * https://data.cityofchicago.org/ | ||
* https://data.cityofnewyork.us/ | * https://data.cityofnewyork.us/ | ||