APIs

DATA FOR ROAD INCIDENT VISUALIZATION EVALUATION AND REPORTING (DRIVER)

BACKGROUND

According to a 2009 report prepared by the National Center for Transportation Studies, road crashes cost the Philippines nearly 2.6% of its GDP each year. These crashes not only pose immeasurable human costs, they are also impediments to economic development, affecting the most productive segments of the population and degrading the efficiency of transport networks.

Despite the importance of road safety, there remains substantial underreporting of road crashes. For example, in 2013, the Philippines reported 1,513 road deaths, while the WHO estimated 10,379. This underreporting has stemmed from a relatively underdeveloped road crash data management system in the Philippines. Traditionally, road crash data have been collected and managed in separate databases by the Philippines National Police, Local Government Unit Traffic Enforcement Departments, the Department of Public Works and Highways, the National Center for Transportation Studies, and the Department of Health.

As a result of this decentralized approach, unnecessary resources have been spent collecting the same data multiple times, causing inconsistencies among data from different sources. Given the inherent difficulties in systematically aggregating these data across multiple agencies, decisions to allocate scarce traffic management and infrastructure investment resources in the Philippines have rarely been evidence-based, and systems to monitor the efficacy of interventions have not existed – until now.

 

DATA FOR ROAD INCIDENT VISUALIZATION, EVALUATION, AND REPORTING (DRIVER) SYSTEM

Starting in 2013, with support from the World Bank, the  Department of Transportation (“DOTr”) began piloting an open-source, web-based platform – which, among other tasks, supported the creation of a digital, geo-spatially referenced and real-time database of road crashes. This pilot platform has been successfully deployed in Cebu and Manila, and combined, more than 30,000 unique reports have been entered since the platform was introduced. The free platform was hosted by DOST and accessible via the Internet.

Building upon the success of this pilot initiative,  DOTr,  together with the World Bank and the Inter-Agency Committee on Road Safety, have embarked on a national-level open data program for crash reporting – the Data for Road Incident Visualization Evaluation and Reporting System or the DRIVER System (“DRIVER”) which can be publicly accessed at www.roadsafety.gov.ph website.

DRIVER provides a centralized and national platform for gathering, reporting, and analysis of crashes across the Philippines. The open-source platform includes:

DRIVER empowers both the national and the local government to make evidence-based decisions in road safety interventions including optimization of traffic enforcer assignment, identification of needed traffic infrastructure and equipment, development of laws and policies among other things. DRIVER also provides standardized terms and definitions for road incident reporting which will allow the government to make accurate analysis on road incident data. Currently, the platform is being used by four entities: MMDA, Cebu City, Dipolog City, and BGC which have recorded more than 4000 incidents since September 30, 2016.

For the Road Safety Idea Hack, participants are welcome to use the code, manuals and the data of DRIVER to solve one of the problem statements: 

·       Link to Github repository: https://github.com/WorldBank-Transport/DRIVER

·       API Documentation: https://github.com/WorldBank-Transport/DRIVER/blob/master/doc/api-use-case-health-organization.md

·      Manuals: https://drive.google.com/file/d/0BzsFO51elZAJVEJub1lVWi1DVXc/view?usp=sharing

https://drive.google.com/file/d/0BzsFO51elZAJVEJub1lVWi1DVXc/view?usp=sharing

 

DRIVER website

(1)  https://roadsafety.gov.ph: This is the live version hosted by DICT and in use by the Philippines government. Public users can view data, but cannot add data or use any of the administrative functions of the platform. By using API with this instance, developers can access real-time crash data, which does not include sensitive details about the vehicles or persons involved.

 

(2)    https://roadsafety.io: This is a demo instance that has been set up for the hack-a-thon. Users logging in will automatically have analyst privileges to the platform and can add and edit records. The data included this instance are real historical data, scrubbed of privacy-sensitive details. By using the API with this instance, developers can experiment with additional API features not usually available to the public.

 

Developers are invited to review the API documentation and sign on with their gmail accounts to get started!

 

OPEN TRAFFIC

In many Asian cities, resourced‐constrained traffic management agencies are challenged to mitigate traffic congestion in their cities. Traffic congestion significantly impact the population in various ways. One is the reduction in the quality of life of its people and the other is in the economic opportunities available to them. Often, the segment that is hardest hit are those with the lowest income. Pollution and the emission of greenhouse gases also further impedes the growth of the Gross Domestic Product. For these agencies, manual survey methods and installed physical sensors were used to collect data on traffic volumes and flows. However, such methods require substantial capital outlays, maintenance, and technical expertise. Such methods are also limiting as data can only be recorded in places where the sensors are installed. Hence, the capability of the traffic management agencies to make informed decision continued to be challenging as access to sophisticated tools that are not available. With the advent of smartphone technologies and its widespread usage, an open‐source platform that collects, visualizes, and analyzes traffic speed derived from the smartphones of drivers was made possible. The platform, named Open Traffic, was developed by a project team from the World Bank. It leverages on the GPS data generated by drivers using Grab, an on‐demand ride hailing app.

In short, the platform uses GPS data generated by Grab drivers to derive on-street traffic speed and flow statistics for use in traffic management, traffic signal optimization, urban mobility assessments, and other aspects of transport planning. The platform is completely free for the use of government agencies where Grab and the World Bank operate. 

For the Road Safety Idea Hack, participants are welcome to use the following materials on Open Traffic to solve one of the problem statements: 

·       Link to API documentation and Github repository: https://github.com/opentraffic/hackathon-jupyter/

·       Link to data demo: https://mapzen.github.io/open-traffic-poc-data-demo/

·       Link to API Survey: https://docs.google.com/forms/d/1tCZIullK1i9UXMKeeWSqTxYbduWOghv1I02QTO8BMfA

·       Phase I Open Traffic Platform Report: http://pubdocs.worldbank.org/en/513661445369530688/Open-Traffic-Completion-Report-1.pdf

 

PHILIPPINE TRANSIT INFO SERVICE

INTRODUCTION

The Department of Transport and Communications, in partnership with MMDA, LTO, LTFRB, LRTA, and MRT3, has created an open, publically accessible database for all public transit service information in Metro Manila. The database includes the following regularly updated information: Geographic location of more than 900 bus, rail, and PUJ routes; Location of key rail and bus stops; Transit service operating hours; and Fare schedule for rail routes; the fare matrices for bus and jeep routes will be provided separately.

For the first time in Manila, it will be possible to print multi-modal route maps, use on-line tools to identify the shortest multi-modal transit route to a given destination, estimate the total fare of a multi-modal trip, support rapid communication of alternative public transit routing during floods, and so much more. The applications of the database are limited only to the imaginations of developers to utilize it. And since the database has been built around an international standard – the General Transit Feed Specification (GTFS), applications developed by local Filipinos could be immediately adopted by the more than 500 global cities that have also made their GTFS databases publically available. 

Open transport data protocols are (typically) XML-based formats for recording and sharing data. The General Transportation Feed Specification (GTFS) is an emerging open data protocol, or standard, used by hundreds of transport agencies worldwide for reporting static transit system data, such as bus routes, schedules, and stop locations.

Further information about this protocol, and its data requirements, may be found here: http://code.google.com/transit/spec/transit_feed_specification.html

GTFS sample data may be found here: https://transit.land/feed-registry/?country=PH

By placing data in this open format, independent developers can create applications that support use of these data at scale (from which the transit agency benefits, without having had to devote resources to their development) – applications that both make a system easier for riders to use, as well as applications that enable multiple transport companies and agencies to seamlessly coordinate service.  In short, if one city using open protocols implements a good idea, then that idea could be replicated by any other city using the same protocols – in international development, this is a very powerful concept.

The DOTC and partner agencies are using open-source software developed by Conveyal to maintain and update the dataset. The tools include a mobile app for data collection, as well as a web-based application for software management. The code for these tools – GTFS Editor and Transit Wand – may be found here: https://github.com/conveyal

During the idea hack, developers are welcome to utilize code from these applications as well.

Manila and Cebu GTFS and other supplemental datasets can be found here: http://bit.ly/2lIGA5H

 

Mapillary 

Mapillary is a collaborative street-level imagery platform powered by computer vision. 

The company’s mission is to understand the world's places through images and make this understanding available to all. Mapillary provides apps and tools for everyone, enabling individuals, businesses, and governments worldwide to contribute with street-level imagery. All images are connected in 3D and objects recognized in images are automatically labeled and turned into geospatial data. Mapillary has a viewer, APIs, and developer tools for easy use of this imagery and geospatial data in a wide range of applications. Today, more than 100 million images have been contributed to Mapillary and are being used to better understand the world, helping cities and citizens develop infrastructure, map makers to build maps, and automotive companies to create safer transportation. 

Mapillary’s developer tools can be accessed here: https://www.mapillary.com/developer

 

Other Open Source Resources

  1. OpenStreetMap - All resources used by Philippine government agencies for this competition are based on OpenStreetMaps, a license-free set of base maps that developers are actively encouraged to use. Access it at: http://www.openstreetmap.org/

  2. Mapzen - https://mapzen.com/products/

  3. Azavea -  https://github.com/azavea

  4. Globe Lab APIs - http://www.globelabs.com.ph/#!/developer/api