26
Van trends tot innovatie Open data: CitySDK & API’S - 15-11-2013 Wouter Meys & Maarten Groen

College Van Trends Tot Innovatie

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: College Van Trends Tot Innovatie

Van trends tot innovatieOpen data: CitySDK & API’S - 15-11-2013Wouter Meys & Maarten Groen

Page 2: College Van Trends Tot Innovatie

Content● Part I

○ Open data○ The CitySDK project○ Try the CitySDK API

● Part 2○ Social media API’s○ Using the Twitter API

Page 3: College Van Trends Tot Innovatie

Open dataWhat is open data?● A piece of data is open if anyone is free to use, reuse,

and redistribute it — subject only, at most, to the requirement to attribute and/or share-alike.

Page 4: College Van Trends Tot Innovatie

Current issues of open data● Different locations and different formats

● No data format standards (across countries)

Page 5: College Van Trends Tot Innovatie

Five stars of Tim Berners-Lee★ make your stuff available on the Web (whatever format) under an open license

★ ★ make it available as structured data (e.g., Excel instead of image scan of a table)

★ ★ ★ use non-proprietary formats (e.g., CSV instead of Excel)

★ ★ ★ ★ use URIs to denote things, so that people can point at your stuff

★ ★ ★ ★ ★ link your data to other data to provide context (semantic web)

Page 6: College Van Trends Tot Innovatie

Part I: The CitySDK project● Eight European Cities

● Open data platform○ Work packages: Mobility, Tourism, Participation

● Helping cities to open their data

● Giving developers the tools they need

Page 7: College Van Trends Tot Innovatie

The CitySDK framework (1)

Page 8: College Van Trends Tot Innovatie

The CitySDK framework (2)

Page 9: College Van Trends Tot Innovatie

HvA contributions ● Collect data on tourists' movements, activities and/or

experiences

● For organizations in the tourism sector, increase knowledge on their clients

● Enabling smarter information (services) for tourists

Page 10: College Van Trends Tot Innovatie

Implementation● Replicate the Lissabon head tourism pilot

● Tourism pilot focuses on:○ Points Of Interests (POI)○ Events○ Routes

● Using Open Data○ Arts Holland ○ Hotels: amsterdamopendata.nl○ Restaurants: ATCB

Page 11: College Van Trends Tot Innovatie

Dynamic data ● Collaboration with Van

Gogh museum○ Measuring queue

length○ Interesting info for

Van Gogh○ Better services for

tourists

Page 12: College Van Trends Tot Innovatie

Sensor system● Ultrasonic sensor ● Four separate wireless

transmitters ● One base station

Page 13: College Van Trends Tot Innovatie

Sensor framework

Page 14: College Van Trends Tot Innovatie

Sensor locations

Page 15: College Van Trends Tot Innovatie

From test lab to living lab● Four sensor are placed● Problems:

○ Rain○ Range○ Base station location

● Fixes: ○ Improved case○ Better antennas

Page 16: College Van Trends Tot Innovatie

Application showing data● Show queue

● Go to POI/Events

● Create your own route

Page 17: College Van Trends Tot Innovatie

The CitySDK API● Tourism:

○ API: citysdk.dmci.hva.nl/CitySDK/resources○ Documentation: http://citysdk.ist.utl.pt/

● Mobility○ dev.citysdk.waag.org

Page 18: College Van Trends Tot Innovatie

ApplicationsApplications made with CitySDK API● Open Data Globe

○ http://dev.citysdk.waag.org/visualisation/

● Buildings in the Netherlands by year of construction○ http://dev.citysdk.waag.org/buildings/

Page 19: College Van Trends Tot Innovatie

Try it out● Look at the different datasets

○ http://cms.citysdk.waag.org

http://dev.citysdk.waag.org/● Try to retrieve all restaurants available in the API that

are located in ‘stadsdeel west’ in Amsterdam

● Play around with combination of various datasets

Page 20: College Van Trends Tot Innovatie

Short Break (15 min)

Page 21: College Van Trends Tot Innovatie

Part II: Social media API’s● Twitter

○ +: Data is open, geolocation ○ -: Data reliability , sparsity , firehose

● Facebook○ +: Large userbase, Likes, Companies ○ -: Accessibility, query language

● Other: Flickr, FourSquare, Instagram etc. etc.

Page 22: College Van Trends Tot Innovatie

Combining API’s● Livehoods

○ http://livehoods.org/maps/nyc

● Please Rob Me○ http://pleaserobme.com/why

● Streamwatchr○ http://streamwatchr.com/

Page 23: College Van Trends Tot Innovatie

The Twitter API● What did we do?

○ Collect tweets with geolocation in Amsterdam

● Visualize the data in different ways

Page 24: College Van Trends Tot Innovatie

Using the Twitter API● Streaming API● REST API● Firehose

● Authentication● Documentation: dev.twitter.com

Page 25: College Van Trends Tot Innovatie

Try it out!● Register an application (dev.twitter.com)● Check for library (https://dev.twitter.com/docs/twitter-libraries)

○ Javascript: codebird-js○ Processing: http://blog.blprnt.com/blog/blprnt/updated-quick-

tutorial-processing-twitter (or google: processing twitter)

● Retrieve current trending topics (in The Netherlands)● Retrieve tweets(no retweets) from the past week in

Amsterdam