getting started with civic application development

25
Rethink Getting Started with Civic Application Development Thom Robbins, Socrata @trobbins Leveraging the power of open data

Upload: thom-robbins

Post on 16-Jul-2015

776 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Getting started with civic application development

Reth

ink

Getting Started with Civic Application Development

Thom Robbins, Socrata

@trobbins

Leveraging the power of open data

Page 2: Getting started with civic application development

Reth

ink

“Open data looks to make data that

belongs to the public broadly

accessible and usable by humans

and machines, free of any

constraints”

Page 3: Getting started with civic application development

Reth

ink

WelcomeWhy open data?

The goal of open data is to take the valuable

resource out of government database silos, where

it sits idle and put it into the hands of the people

who can unlock it’s value

Page 4: Getting started with civic application development

Reth

ink

What will we look at? Hacking the data

We will look at how you can

use a free and open API to tap

into this data for your

applications

Page 5: Getting started with civic application development

Reth

ink

What does Socrata do?

We make it easy for

governments to share their

public data with application

developers

Page 6: Getting started with civic application development

Reth

ink

What kind of data is out there?

Over 200+ governments (and

counting) of all types are

making their data available!

Page 7: Getting started with civic application development

Reth

ink

How much data is there?

Page 8: Getting started with civic application development

Reth

ink

Typical data types

Budget and spending

Police and crime

Transportation and geospatial

Heath & Public Safety

Page 9: Getting started with civic application development

Reth

ink

What can you build?

http://open-data-apps.socrata.com/submit-app/

Page 10: Getting started with civic application development

Reth

ink

Spotcrime.com

Page 11: Getting started with civic application development

Reth

ink

Look at Cook

http://lookatcook.com/

Page 12: Getting started with civic application development

Reth

ink

Yelp (San Francisco)

Page 13: Getting started with civic application development

Reth

ink

The Socrata open data APIs

Data publisher

Consumer

Page 14: Getting started with civic application development

Reth

ink

Step 1: Finding Data

• Information resource -

Dev.socrata.com/data

• Local site example

• Cambridge Open Data -

https://data.cambridgema.gov

/

• White House Open Data -

https://open.whitehouse.gov/

Page 15: Getting started with civic application development

Reth

ink

Step 2: Getting the API endpoints

https://$domain/resource/$identifier.$ext

Page 16: Getting started with civic application development

Reth

ink

Step 3: Simple filters

/resources/abcd-1234.json?source=ConEd

Page 17: Getting started with civic application development

Reth

ink

Step 4: SoQL Queries

/resource/abcd-

1234.json?$where=kwh > 8000

More information available at: dev.socrata.com/docs/queries.html

Page 18: Getting started with civic application development

Reth

ink

Advanced SoQl queries

Page 19: Getting started with civic application development

Reth

ink

Step 5: Geo Queries

/resource/abcd-1234.json?

$where=within_circle(location, latitude, longitude,

distance(m))

Page 20: Getting started with civic application development

Reth

ink

Step 6: Paging through data

/resource/abcd-1234.json?

$limit=50 & $offset=100

The default $limit is 1000 and $offset start at 0

Page 21: Getting started with civic application development

Reth

ink

Step 7: Application Tokens

Register at http://dev.socrata.com/register

Include as

• X-App-Token: $token HTTP Header or….

• The $$app_token=$token parameter

Page 22: Getting started with civic application development

Reth

ink

Check out the getting started guide

http://dev.socrata.com/consumers/examples/creating-an-application-with-asp-dotnet.html

Page 23: Getting started with civic application development

Reth

ink

Need help?

The place for all your developer

needs:

http://dev.socrata.com

Page 24: Getting started with civic application development

Reth

ink

Are you ready?

http://open-data-apps.socrata.com/submit-app/

Page 25: Getting started with civic application development

Reth

ink

Thank You!

Find Us!

Socrata.com

Follow Us!

@Socrata

Friend Us!

facebook.com/socrata

Watch Us!

http://www.youtube.com/user/socratavideos