SlideShare ist ein Scribd-Unternehmen logo
1 von 26
Smart participation work package
API Strat workshop 26.3.2014
Jaakko Rajaniemi
City of Helsinki
Issue reporting API in CitySDK
http://www.citysdk.eu/developers/
Issue reporting API
•Based on Open311 (also known as GeoReport v2)
•http://open311.org/
•http://dev.hel.fi/apis/issuereporting
•Open311 used in more than 30 cities in US and now
coming to Europe
“The fence is broken at the
square next to the railway
station.”
Citizen reports an issue
Status: Received
fence is broken
Received
“The fence is broken at the
square next to the railway
station.”
“Public works department
fixes similar issues on
avarage in 5 days.”
Moved to the City’s customer
service.
Moved to the City’s customer
service.
Automatic response sent to the
citizen:
Automatic response sent to the
citizen:
Status: In Process
fence is broken
In Process
“The fence is broken at the
square next to the railway
station.”
Public works department
decides to fix this issue
Public works department
decides to fix this issue
Status: Being fixed
fence is broken
Being fixed
Stara fiksaaTähän palauteteksti
Ja status vastauksineen
“The fence is broken at the
square next to the railway
station.”
Public works department
fixes the fence.
Status: Fixed
Issue has been fixed and a
notification is sent to the user.
Issue has been fixed and a
notification is sent to the user.
fence is broken
Fixed
Status: Fixed
“The fence is broken at the
square next to the railway
station.”
“The issue you reported has
been fixed. “
Issue has been fixed and a
notification is sent to the user.
Issue has been fixed and a
notification is sent to the user.
fence is broken
Fixed
Issue reporting API which allows
1.Query service request types and definitions
Defines request types and extra attributes
1.Submit service request
Description, image, location, contact information
1.Query individual service request
Status and other service request details
1.Query services requests
Based on time and location
Query URL structure
1. Query service request types and definitions (HTTP GET)
 https://[API endpoint]/services.[format]
 https://asiointi.hel.fi/palautews/rest/v1/services.json
 https://[API endpoint]/services/[service_code].[format]
 https://asiointi.hel.fi/palautews/rest/v1/services/171.json
1. Submit service request (HTTP POST)
 https://[API endpoint]/requests.[format]
https://asiointi.hel.fi/palautews/rest/v1/requests.json
1. Query individual service request (HTTP GET)
 https://[API endpoint]/requests/[service_request_id].[format]
 https://asiointi.hel.fi/palautews/rest/v1/requests/2278m9r1a1f50dhb1mug.json
1. Query services requests (HTTP GET)
https://[API endpoint]/requests.[format]?querystring
https://asiointi.hel.fi/palautews/rest/v1/requests.json?status=open
Discovery file
https://asiointi.hel.fi/palautews/rest/v1/discovery.json
Service request types
and language support
http://311api.cityofchicago.org/open311/v2/services.json
https://asiointi.hel.fi/palautews/rest/v1/services.json?locale=fi_FI
http://311api.cityofchicago.org/open311/v2/services/4ffa4c69601827691b000018.json
Service definition
Submitting service requests
Parameters
• api_key Api key for submitting service requests Yes
• service_code The unique identifier for the service request type Yes
• description A full description of the service request. Yes
• lat Latitude using the (WGS84) projection. No
• long Longitude using the (WGS84) projection. No
• service_object_type (CitySDK) Describes the point of interest reference which is used for identifying the
request object. No
• service_object_id (CitySDK) Identifies the point of interest which feedback is linked No
• title (CitySDK) Title of the service requests No
• address_string Human readable address or description of location. No
• email The email address of the person submitting the request No
• first_name The given name of the person submitting the request No
• last_name The family name of the person submitting the request No
• phone The phone number of the person submitting the request No
• media_url A URL to media associated with the request, e.g. an image No
• media Array of file uploads No
• Additional attributes Additional attributes defined in service definition No
Lots of ways to query• Last service requests: https://asiointi.hel.fi/palautews/rest/v1/requests.json
• Individual service request: https
://asiointi.hel.fi/palautews/rest/v1/requests/2278m9r1a1f50dhb1mug.json?extensions=true
• Service requests based on received time:
https://asiointi.hel.fi/palautews/rest/v1/requests.json?extensions=true&start_date=2014-03-18&en
• Service requests based on updated time:
https://asiointi.hel.fi/palautews/rest/v1/requests.json?extensions=true
&updated_after=2014-03-25T08:03:46+03:00&updated_before=2014-03-26T18:03:46+03:00
• Service requests based on service objects: https
://asiointi.hel.fi/palautews/rest/v1/requests.json?service_object_id=26055&service_object_type=ht
www.hel.fi/servicemap/v2
– http://www.hel.fi/palvelukarttaws/rest/v2/unit/26055
• Service requests based on service_code:
https://asiointi.hel.fi/palautews/rest/v1/requests.json? service_code=171,174
• Service requests based on status:
https://asiointi.hel.fi/palautews/rest/v1/requests.json?extensions=true&status=closed
• More queries: https
://docs.google.com/document/d/10Ggep6WANy1LJcOSpZ8vOgTertUS0Tkk6IQf3Omvibc/edit
?usp=sharing
Demos
• http://dev.hel.fi/open311-test/mapviewer.html
• http://dev.hel.fi/open311-test/servicemap_new.html
Python Three
• Three is simple open source Open311 client
>>from three import Three
>>t = Three(https://asiointi.hel.fi/palautews/rest/v1/',
api_key='API_KEY_HERE')
>>resp = t.post('202', name='Jaakko Rajaniemi',
lat='60.168321', long='24.952397', description='Traffic
sign is broken.',email='jaakko.rajaniemi@hel.fi',
media=open('traffic_sign.jpg', 'rb'))
Over 2500 service requests
Metro
Korjaakaupunki.fi
Sanom.at
What next?
Before
After??
Use open data for better reports
http://dev.hel.fi/open311-test/reports_and_areas.html
Thank you!
• Jaakko Rajaniemi jaakko.rajaniemi@hel.fi
– City of Helsinki
• @jaakko

Weitere ähnliche Inhalte

Ähnlich wie Civic participation presentation in API Strategy conference in Amsterdam 2014

API-Driven Relationships: Building The Trans-Internet Express of the Future
API-Driven Relationships: Building The Trans-Internet Express of the FutureAPI-Driven Relationships: Building The Trans-Internet Express of the Future
API-Driven Relationships: Building The Trans-Internet Express of the FuturePat Patterson
 
OpenSocial and Mixi platform
OpenSocial and Mixi platformOpenSocial and Mixi platform
OpenSocial and Mixi platformPham Thinh
 
CiviCRM: Better Living Through Extensions
CiviCRM: Better Living Through ExtensionsCiviCRM: Better Living Through Extensions
CiviCRM: Better Living Through ExtensionsAllen Shaw
 
SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...
SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...
SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...Eric Shupps
 
Project Status: 30 Million LDAP Objects
Project Status: 30 Million LDAP ObjectsProject Status: 30 Million LDAP Objects
Project Status: 30 Million LDAP ObjectsUnivention GmbH
 
Liberated APIs in ClojureLand - Paris Clojure User Group
Liberated APIs in ClojureLand - Paris Clojure User GroupLiberated APIs in ClojureLand - Paris Clojure User Group
Liberated APIs in ClojureLand - Paris Clojure User GroupGaylord Mazelier
 
Data Synchronization Patterns in Mobile Application Design
Data Synchronization Patterns in Mobile Application DesignData Synchronization Patterns in Mobile Application Design
Data Synchronization Patterns in Mobile Application DesignEric Maxwell
 
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...Atlassian
 
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...Atlassian
 
Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Lori Head
 
Api Versioning
Api VersioningApi Versioning
Api VersioningBen Ramsey
 
Timeline SoMa WADE
Timeline SoMa WADETimeline SoMa WADE
Timeline SoMa WADEIrnuk
 
Realtime Content Delivery: Powering dynamic instant experiences
Realtime Content Delivery: Powering dynamic instant experiencesRealtime Content Delivery: Powering dynamic instant experiences
Realtime Content Delivery: Powering dynamic instant experiencesAkhilesh Gupta
 
RichFaces 4 Component Deep Dive - JAX/JSFSummit
RichFaces 4 Component Deep Dive - JAX/JSFSummitRichFaces 4 Component Deep Dive - JAX/JSFSummit
RichFaces 4 Component Deep Dive - JAX/JSFSummitbalunasj
 
Whowas: Historical Whois Service
Whowas: Historical Whois ServiceWhowas: Historical Whois Service
Whowas: Historical Whois ServiceAPNIC
 
Twitter Trend Analyzer
Twitter Trend AnalyzerTwitter Trend Analyzer
Twitter Trend AnalyzerMatthew Chang
 

Ähnlich wie Civic participation presentation in API Strategy conference in Amsterdam 2014 (20)

API-Driven Relationships: Building The Trans-Internet Express of the Future
API-Driven Relationships: Building The Trans-Internet Express of the FutureAPI-Driven Relationships: Building The Trans-Internet Express of the Future
API-Driven Relationships: Building The Trans-Internet Express of the Future
 
OpenSocial and Mixi platform
OpenSocial and Mixi platformOpenSocial and Mixi platform
OpenSocial and Mixi platform
 
CiviCRM: Better Living Through Extensions
CiviCRM: Better Living Through ExtensionsCiviCRM: Better Living Through Extensions
CiviCRM: Better Living Through Extensions
 
SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...
SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...
SPS Houston - Who Are You and What Do You Want? Working With OAuth in SharePo...
 
Project Status: 30 Million LDAP Objects
Project Status: 30 Million LDAP ObjectsProject Status: 30 Million LDAP Objects
Project Status: 30 Million LDAP Objects
 
Liberated APIs in ClojureLand - Paris Clojure User Group
Liberated APIs in ClojureLand - Paris Clojure User GroupLiberated APIs in ClojureLand - Paris Clojure User Group
Liberated APIs in ClojureLand - Paris Clojure User Group
 
Reshma_Bhalekar_Resume
Reshma_Bhalekar_ResumeReshma_Bhalekar_Resume
Reshma_Bhalekar_Resume
 
Data Synchronization Patterns in Mobile Application Design
Data Synchronization Patterns in Mobile Application DesignData Synchronization Patterns in Mobile Application Design
Data Synchronization Patterns in Mobile Application Design
 
OAuth Android Göteborg
OAuth Android GöteborgOAuth Android Göteborg
OAuth Android Göteborg
 
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
 
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
Extend Your Use of JIRA by Solving Your Unique Concerns: An Exposé of the New...
 
Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207Advanced Web Design And Development BIT 3207
Advanced Web Design And Development BIT 3207
 
Api Versioning
Api VersioningApi Versioning
Api Versioning
 
Timeline SoMa WADE
Timeline SoMa WADETimeline SoMa WADE
Timeline SoMa WADE
 
Shifan_QA_Resume
Shifan_QA_ResumeShifan_QA_Resume
Shifan_QA_Resume
 
Realtime Content Delivery: Powering dynamic instant experiences
Realtime Content Delivery: Powering dynamic instant experiencesRealtime Content Delivery: Powering dynamic instant experiences
Realtime Content Delivery: Powering dynamic instant experiences
 
RichFaces 4 Component Deep Dive - JAX/JSFSummit
RichFaces 4 Component Deep Dive - JAX/JSFSummitRichFaces 4 Component Deep Dive - JAX/JSFSummit
RichFaces 4 Component Deep Dive - JAX/JSFSummit
 
Twet
TwetTwet
Twet
 
Whowas: Historical Whois Service
Whowas: Historical Whois ServiceWhowas: Historical Whois Service
Whowas: Historical Whois Service
 
Twitter Trend Analyzer
Twitter Trend AnalyzerTwitter Trend Analyzer
Twitter Trend Analyzer
 

Mehr von HelsinkiLovesDevelopers

Mehr von HelsinkiLovesDevelopers (8)

Palauterajapinta kuvaus
Palauterajapinta kuvausPalauterajapinta kuvaus
Palauterajapinta kuvaus
 
Crash course to Open Data and APIs
Crash course to Open Data and APIsCrash course to Open Data and APIs
Crash course to Open Data and APIs
 
Palauterajapinta työpaja 17.09.2013
Palauterajapinta työpaja 17.09.2013Palauterajapinta työpaja 17.09.2013
Palauterajapinta työpaja 17.09.2013
 
Helsinki CitySDK Pilot
Helsinki CitySDK PilotHelsinki CitySDK Pilot
Helsinki CitySDK Pilot
 
Futr hki
Futr hkiFutr hki
Futr hki
 
Open cities data catalogue june 2012 presentation
Open cities data catalogue june 2012 presentationOpen cities data catalogue june 2012 presentation
Open cities data catalogue june 2012 presentation
 
Palvelukartan esitys kehittäjätapaamisessa 10.5.2012
Palvelukartan esitys kehittäjätapaamisessa 10.5.2012 Palvelukartan esitys kehittäjätapaamisessa 10.5.2012
Palvelukartan esitys kehittäjätapaamisessa 10.5.2012
 
Helsingin kaupungin kehittäjätapaaminen CitySDK
Helsingin kaupungin kehittäjätapaaminen CitySDKHelsingin kaupungin kehittäjätapaaminen CitySDK
Helsingin kaupungin kehittäjätapaaminen CitySDK
 

Kürzlich hochgeladen

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Victor Rentea
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 

Kürzlich hochgeladen (20)

MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 

Civic participation presentation in API Strategy conference in Amsterdam 2014

  • 1. Smart participation work package API Strat workshop 26.3.2014 Jaakko Rajaniemi City of Helsinki
  • 2. Issue reporting API in CitySDK http://www.citysdk.eu/developers/
  • 3. Issue reporting API •Based on Open311 (also known as GeoReport v2) •http://open311.org/ •http://dev.hel.fi/apis/issuereporting •Open311 used in more than 30 cities in US and now coming to Europe
  • 4. “The fence is broken at the square next to the railway station.” Citizen reports an issue
  • 5. Status: Received fence is broken Received
  • 6. “The fence is broken at the square next to the railway station.” “Public works department fixes similar issues on avarage in 5 days.” Moved to the City’s customer service. Moved to the City’s customer service. Automatic response sent to the citizen: Automatic response sent to the citizen: Status: In Process fence is broken In Process
  • 7. “The fence is broken at the square next to the railway station.” Public works department decides to fix this issue Public works department decides to fix this issue Status: Being fixed fence is broken Being fixed
  • 8. Stara fiksaaTähän palauteteksti Ja status vastauksineen “The fence is broken at the square next to the railway station.” Public works department fixes the fence. Status: Fixed Issue has been fixed and a notification is sent to the user. Issue has been fixed and a notification is sent to the user. fence is broken Fixed
  • 9. Status: Fixed “The fence is broken at the square next to the railway station.” “The issue you reported has been fixed. “ Issue has been fixed and a notification is sent to the user. Issue has been fixed and a notification is sent to the user. fence is broken Fixed
  • 10. Issue reporting API which allows 1.Query service request types and definitions Defines request types and extra attributes 1.Submit service request Description, image, location, contact information 1.Query individual service request Status and other service request details 1.Query services requests Based on time and location
  • 11. Query URL structure 1. Query service request types and definitions (HTTP GET)  https://[API endpoint]/services.[format]  https://asiointi.hel.fi/palautews/rest/v1/services.json  https://[API endpoint]/services/[service_code].[format]  https://asiointi.hel.fi/palautews/rest/v1/services/171.json 1. Submit service request (HTTP POST)  https://[API endpoint]/requests.[format] https://asiointi.hel.fi/palautews/rest/v1/requests.json 1. Query individual service request (HTTP GET)  https://[API endpoint]/requests/[service_request_id].[format]  https://asiointi.hel.fi/palautews/rest/v1/requests/2278m9r1a1f50dhb1mug.json 1. Query services requests (HTTP GET) https://[API endpoint]/requests.[format]?querystring https://asiointi.hel.fi/palautews/rest/v1/requests.json?status=open
  • 13. Service request types and language support http://311api.cityofchicago.org/open311/v2/services.json https://asiointi.hel.fi/palautews/rest/v1/services.json?locale=fi_FI
  • 15. Submitting service requests Parameters • api_key Api key for submitting service requests Yes • service_code The unique identifier for the service request type Yes • description A full description of the service request. Yes • lat Latitude using the (WGS84) projection. No • long Longitude using the (WGS84) projection. No • service_object_type (CitySDK) Describes the point of interest reference which is used for identifying the request object. No • service_object_id (CitySDK) Identifies the point of interest which feedback is linked No • title (CitySDK) Title of the service requests No • address_string Human readable address or description of location. No • email The email address of the person submitting the request No • first_name The given name of the person submitting the request No • last_name The family name of the person submitting the request No • phone The phone number of the person submitting the request No • media_url A URL to media associated with the request, e.g. an image No • media Array of file uploads No • Additional attributes Additional attributes defined in service definition No
  • 16. Lots of ways to query• Last service requests: https://asiointi.hel.fi/palautews/rest/v1/requests.json • Individual service request: https ://asiointi.hel.fi/palautews/rest/v1/requests/2278m9r1a1f50dhb1mug.json?extensions=true • Service requests based on received time: https://asiointi.hel.fi/palautews/rest/v1/requests.json?extensions=true&start_date=2014-03-18&en • Service requests based on updated time: https://asiointi.hel.fi/palautews/rest/v1/requests.json?extensions=true &updated_after=2014-03-25T08:03:46+03:00&updated_before=2014-03-26T18:03:46+03:00 • Service requests based on service objects: https ://asiointi.hel.fi/palautews/rest/v1/requests.json?service_object_id=26055&service_object_type=ht www.hel.fi/servicemap/v2 – http://www.hel.fi/palvelukarttaws/rest/v2/unit/26055 • Service requests based on service_code: https://asiointi.hel.fi/palautews/rest/v1/requests.json? service_code=171,174 • Service requests based on status: https://asiointi.hel.fi/palautews/rest/v1/requests.json?extensions=true&status=closed • More queries: https ://docs.google.com/document/d/10Ggep6WANy1LJcOSpZ8vOgTertUS0Tkk6IQf3Omvibc/edit ?usp=sharing Demos • http://dev.hel.fi/open311-test/mapviewer.html • http://dev.hel.fi/open311-test/servicemap_new.html
  • 17. Python Three • Three is simple open source Open311 client >>from three import Three >>t = Three(https://asiointi.hel.fi/palautews/rest/v1/', api_key='API_KEY_HERE') >>resp = t.post('202', name='Jaakko Rajaniemi', lat='60.168321', long='24.952397', description='Traffic sign is broken.',email='jaakko.rajaniemi@hel.fi', media=open('traffic_sign.jpg', 'rb'))
  • 18. Over 2500 service requests
  • 19.
  • 20.
  • 21.
  • 22. Metro
  • 25. What next? Before After?? Use open data for better reports http://dev.hel.fi/open311-test/reports_and_areas.html
  • 26. Thank you! • Jaakko Rajaniemi jaakko.rajaniemi@hel.fi – City of Helsinki • @jaakko

Hinweis der Redaktion

  1. Issue reporting can become part of your daily doze of news. Like in Helsinki where the open311 API has been available since this spring we have piloted this together with the local media site.
  2. Metro
  3. City receives information on issues faster and in enough detail to fix the issues more efficiently
  4. And in Helsinki the message is then easily sent to the subcontractor
  5. And from the subcontractor to the city.
  6. while automated answers and status updated keep the citizens happy with less human effort.
  7. http://acc.dev.civity.nl/api/open311 http://open311.dataplatform.nl/opentunnel/open311/v21/requests.json?jurisdiction_id=0363&api_key=gt55Jb24ge3z399KSqAlF4KL https://open311.cm-lisboa.pt/GeoReport/v1/