18
#AccelaEngage

Building Civic Apps with Open Data

  • Upload
    yul

  • View
    30

  • Download
    0

Embed Size (px)

DESCRIPTION

Building Civic Apps with Open Data. Seth Axthelm Developer Evangelist Accela. Mark Headd Developer Evangelist Accela. Agenda. What is Open Data? CivicData.com Walkthrough CivicData.com API Data Visualizations Text Messaging App Q&A. Definitions. Open Data - PowerPoint PPT Presentation

Citation preview

Page 1: Building Civic Apps with  Open Data

#AccelaEngage

Page 2: Building Civic Apps with  Open Data

#AccelaEngage

Building Civic Apps with Open Data

Seth AxthelmDeveloper EvangelistAccela

Mark HeaddDeveloper EvangelistAccela

Page 3: Building Civic Apps with  Open Data

#AccelaEngage

Agenda

• What is Open Data?• CivicData.com Walkthrough• CivicData.com API• Data Visualizations• Text Messaging App• Q&A

Page 4: Building Civic Apps with  Open Data

#AccelaEngage

Definitions

• Open Data• Data form governments made available for external

use in machine readable formats.

• csv, json, xml, etc…

• CivicData.com• Open source open data portal powered by Accela and

CKAN (best of breed open source open data platform

Page 5: Building Civic Apps with  Open Data

#AccelaEngage

CivicData.com

• Shared / collaborative open data platform

• Built on best-of-breed, open source CKAN platform (powers OpenColorado & Data.gov)

• Launched in October 2013

• Free for both Accela and non-Accela customers

• Releasing new features every 6-8 weeks

• Real-time open datasets from Accela Automation

Page 6: Building Civic Apps with  Open Data

#AccelaEngage

CivicData.com

Page 7: Building Civic Apps with  Open Data

#AccelaEngage

CivicData.com API

If you have some basic experience with SQL you can

use this API!

Page 8: Building Civic Apps with  Open Data

#AccelaEngage

CivicData.com API - SQL

• Enables you to use SQL to retrieve data• Use PostreSQL Syntax -

http://www.postgresql.org/docs/8.2/static/sql-syntax.html• Use double quotes around column names• Use single quotes around strings• Returns JSON response (and JSONP)• Can join multiple datasets!

• Example: http://mheadd.github.io/nypd-accident-data/

Page 9: Building Civic Apps with  Open Data

#AccelaEngage

CivicData.com API - SQL

• Prefix the query with this:• http://www.civicdata.com/api/action/datastore_search_sql?sql=

• Examples:• Permit counts by type – no filter

• SELECT "PERMIT TYPE", count(*) as COUNT from "92c62bd0-64ea-48ed-b28b-6976fba03cde" GROUP BY "PERMIT TYPE" ORDER BY COUNT DESC

• Count of closed permits• SELECT count(*) from "92c62bd0-64ea-48ed-b28b-6976fba03cde"

WHERE "PERMIT STATUS" = 'Closed’

• Permits ready for pickup• SELECT * from "92c62bd0-64ea-48ed-b28b-6976fba03cde" WHERE

"PERMIT STATUS" = 'Ready for Pickup’

Page 10: Building Civic Apps with  Open Data

#AccelaEngage

CivicData.com API

• JSON Formatter (Chrome Extension) - http://bit.ly/1qnSaLL

Page 11: Building Civic Apps with  Open Data

#AccelaEngage

CivicData.com API

• cURL - http://curl.haxx.se/

Page 12: Building Civic Apps with  Open Data

#AccelaEngage

CivicData.com API

• Postman (Chrome Extension) - http://bit.ly/1kmL3FK

Page 13: Building Civic Apps with  Open Data

#AccelaEngage

Data Visualizations

• Charlotte County, FL Examples

Page 14: Building Civic Apps with  Open Data

#AccelaEngage

Data Visualizations

• Live Example:• http://axtheset.github.io/bocc-civicdata/

• Source code: https://github.com/axtheset/bocc-civicdata

Page 15: Building Civic Apps with  Open Data

#AccelaEngage

Getting Data Easily

Page 16: Building Civic Apps with  Open Data

#AccelaEngage

Text Messaging App

• Simple SMS app to allow citizen to look up permits by address.

• Node.js + Twilio + SLC Data on CivicData.com

• Using a provider like Twilio (or Tropo, or Nexmo) allows you to choose any web technology.

• Helps focus attention on how data is presented, channels used.

Page 17: Building Civic Apps with  Open Data

#AccelaEngage

Text Messaging App

• Demo time

Page 18: Building Civic Apps with  Open Data

#AccelaEngage

Question & Answer Session

Seth AxthelmDeveloper EvangelistAccela

Mark HeaddDeveloper EvangelistAccela

Accela Developer LinksDeveloper Portal: https://developer.accela.comDeveloper Blog: http://devblog.accela.comDeveloper Twitter: https://twitter.com/acceladevGitHub: https://github.com/Accela-Inc