Giter Club home page Giter Club logo

bdit_data-sources's Introduction

BDIT Data Sources

This is a master repo for all of the data sources that we use. Each folder is for a different data source and contains an explanation of what the data source is and how it can be used, a sample of the data, and scripts to import the data into the PostgreSQL database.

Table of Contents

Open Data Releases

  • Travel Times - Bluetooth contains data for all the bluetooth segments collected by the city. The travel times are 5 minute average travel times. The real-time feed is currently not operational. See the Bluetooth README for more info.

For the King St. Transit Pilot, the team has released the following datasets, which are typically a subset of larger datasets specific to the pilot:

INRIX

Data Elements

Field Name Description Type
RoadName/Number Road names or numbers string
tx Date and time datetime
tmc TMC Link ID string
spd Link speed estimate double
count Sample Size Used int
score Quality Indicator 10/20/30

Notes

  • INRIX vehicles disproportionately include heavy vehicles.
  • There's additional sampling bias in that the heavy vehicles do not reflect the general travel patterns.
  • Two sections of freeway(the southernmost sections of 427 and 404) have no available data. These approaches may be imssing due to the idiosyncratic geometries of TMCs near the major freeway-to-freeway interchanges.
  • In any given 15 minute interval between 5am and 10pm, 88.7% of freeway links and 48% of arterial links have observations.

BlipTrack Bluetooth Detectors

Data Elements

Historical Data

Field Name Description Type
TimeStamp timestamp datetime
StartPointName startpoint name of segment string
EndPointName endpoint name of segment string
MinMeasuredTime min waiting time of users completing the route from start to end in the timeframe timestamp-resolution to timestamp int
MaxMeasuredTime max waiting time of users completing the route from start to end in the timeframe timestamp-resolution to timestamp int
AvgMeasuredTime average waiting time of users completing the route from start to end in the timeframe timestamp-resolution to timestamp int
MedianMeasuredTime median waiting time of users completing the route from start to end in the timeframe timestamp-resolution to timestamp int
SampleCount the number of devices completing the route from start to end in the timeframe timestamp-resolution to timestamp int

Retrieval

  • Interfaces for retrieving data
    1. Export from Bliptrack GUI at g4apps.bliptrack.net
    2. Display API: REST-based interface returns live data as JSON or xml in a HTTP(S) response
    3. WebService API: SOAP-based for programmatic access to the system.
  • Functions that web service includes:
    • getAvailableDisplayIds() – returns a list of available Public Displays;
    • getDisplayInfo() – returns detailed information for a Public Display for a given display ID;
    • getPublicDisplayData() – used to get Public Display data (current result set) for a given display ID;
    • getDisplayData() – used to get Public Display data (current result set) for a given display ID (for displays with Restricted Access enabled);
    • getExportableAnalyses() – returns a list of analyses, each with all required information for export;
    • getExportableLiveAnalyses() – returns a list of live analyses, each with all required;
    • information for export;
    • getFilteredAnalyses() – returns a list of analyses matching a specified filter, each with all required information for export;
    • exportDwelltimeReport() – used to export Measured Time data;
    • exportLiveDwelltimeReport() – used to export Live Measured Time data;
    • exportKPIReport() – used to export KPI data;
    • exportQuarterlyReport() – used to export Quarterly KPI data;
    • exportCounterReport() – used to export Counter Reports;
    • getCurrentDwellTime() – used to get current dwell time for a live analysis;
    • getCurrentDwellTimes() – used to get current dwell time for a list of live analyses in a single call;
    • exportPerUserData() – used to export individual dwell time measurements for an analysis; and
    • getCustomCurrentDwellTime() – used to get current dwell time for a live analysis with custom parameters.

Volume Data

Turning Movement Counts (TMC)

Data Elements

  • Location Identifier (SLSN Node ID)
  • CountType
  • Count interval start and end date and times
  • AM Peak, PM peak, and off-peak 7:30-9:30, 10:00-12:00,13:00-15:00,16:00-18:00
  • Roadway 1 and 2 names (intersectoin)
  • 15 min aggregated interval time
  • 15 min aggregated volume per movement (turning and approach) by:
    • vehicle types
    • cyclists and pedestrian counts are approach only

Notes

  • No regular data load schedule.
  • Data files collected by 2-3 staff members.
  • Manually geo-reference volume data to an SLSN node during data import process
  • Data is manually updated into FLOW.
  • Counts are conducted on Tuesdays, Wednesdays, and/or Thursdays during school season (September - June) for 1 to 3 consecutive days
  • Strictly conforms to FLOW LOADER data file structure
  • If numbers collected varies more than defined historical value threshold by 10%, the count will not be loaded.
  • Volume available at both signalized and non-signalized intersections
  • Each count station is given a unique identifier to avoid duplicate records
  • Data will not be collected under irregular traffic conditions(construction, closure, etc), but it maybe skewed by unplanned incidents.

Permanent Count Stations and Automated Traffic Recorder (ATR)

Data Elements

  • Location Identifier(SLSN Link (Node?) ID)
  • Count Type
  • Count interval start and end date and times
  • Roadway Names
  • Location Description
  • Direction
  • Number of Lanes
  • Median and Type
  • Comments
  • 15 min aggregated interval time
  • 15 min volume

Notes

  • The counts represent roadway and direction(s), not on a lane-by-lane level
  • No regular data load schedule
  • Manually geo-reference volume data to an SLSN node during data import process
  • Strictly conforms to FLOW LOADER data file structure
  • Typical ATR counts 24h * 3 days at location in either 1 or both directions
  • Each PCS/ATR is given a unique identifier to avoid duplicate records

Miovision - Multi-modal Permanent Video Counters

Miovision currently provides volume counts gathered by cameras installed at specific intersections. There are 32 intersections in total. Miovision then processes the video footage and provides volume counts in aggregated 1 minute bins. Data stored in 1min bin (TMC) is available in miovision_api.volumes whereas data stored in 15min bin for TMC is available in miovision_api.volumes_15min_tmc and data stored in 15min for ATR is available in miovision_api.volumes_15min.

Data Elements

Field Name Description Type
volume_uid unique identifier for table integer
intersection_uid unique identifier for each intersection integer
datetime_bin date and time timestamp without time zone
classification_uid classify types of vehicles or pedestrians or cyclists integer
leg entry leg of movement text
movement_uid classify how the vehicles/pedestrians/cyclists cross the intersection, eg: straight/turn left/turn right etc integer
volume volume integer
volume_15min_tmc_uid unique identifier to link to table miovision_api.volumes_15min_tmc integer

Notes

  • Data entry via Airflow that runs Miovision API daily
  • volume_uid in the table is not in the right sequence due to different time of inserting data into table
  • Although Miovision API data has been avialable circa Summer'18 but the data is only more reliable May 2019 onwards?
  • miovision_api schema currently have data from Jan 2019 onwards but data prior to May 2019 contains many invalid movements
  • Duplicates might also happen at the Miovision side (happened once thus far)
  • Quality control activities:
    1. unique constraint in miovision_api volumes tables
    2. raise a warning flag when try to insert duplicates data into the table

Vehicle Detector Station (VDS)

Data Elements

  • Location Identifier (SLSN Link ID)
  • Count Type
  • Roadway Names
  • Lane Number
  • 15 min aggregated interval times
  • 15 min aggregated volume, occupancy, and speed

Notes

  • Raw 20sec interval VDS data is available on the processing server, not loaded into FLOW
  • VDS device health/communication statuses are not recorded.
  • Asset information managed in Excel spreadsheets
  • Automated daily import but no real-time integration
  • Strictly conforms to FLOW LOADER data file structure
  • Quality control activities:
    1. data gap verification
    2. partial data records flagged for manual verification/correction

Incidents

Data Elements

  • Unique system (ROdb) identifier
  • Location
  • DTO district
  • Incident start and end times
  • Incident description free form
  • Incident status and timestamps
  • Police activities and timestamps
  • RESCU operator shift information

Notes

  • Manual data entry
  • Location description from a dropdown list
  • Manual location selection on a map based on location description

Road Disruption Activity (RoDARS)

Data available in city.restrictions

Data Elements

Field Name Description Type
id Unique system identifier string
description project description freeform (direction and number of lanes affected and reason) string
name location description string
road road of disruption string
atroad road at cross if disruption zone is an intersection string
fromroad start crossroad if disruption zone is a segment string
toroad end crossroad if disruption zone is a segment stirng
latitude/longitude geo-information (not always occupied) double
district district of location string(from dropdown list)
roadclass road types string(from dropdown list)
expired event status 0:ongoing;1:expired
starttime start time(may not be accurate) timestamp
endtime end time(may not be accurate) timestamp
workperiod Daily/Continuous/Weekdays/Weekends(not always occupied) string
contractor contractor name(not always occupied) string(from dropdown list)
workeventtype work event types(not always occupied) string(from dropdown list)

Notes

  • Information is collected via applicant submission of RoDARS notification form
  • Data entry into ROdb via dropdown list of values
  • No system integration with special events and filming departmental systems
  • Crucial elements of information are in free-form such as lane blockage/closure
  • Roadway names from a dropdown list that conforms to SLSN

CRASH - Motor Vehicle Accident Report

Data Elements

  • Unique MVAR identifier (externally assigned by Toronto Police Service)
  • Accident Date & Time
  • Type of collision
  • Accident location: street name(s), distance offset, municipality, county, etc.
  • Description of accident and diagram
  • Involved persons:
    • Motorist/passenger/pedestrian/cyclist
    • Person age
    • Gender
    • Injuries and Fatalities

Notes

  • No real-time data integration
  • Manual data integration with TPS and CRC via XML file exchange (not reliable or consistent)

Vision Zero - Google Sheets API

This dataset comes from Google Sheets tracking progress on implementation of safety improvements in school zones.
Data Available in vz_safety_programs_staging.school_safety_zone_2018_raw and vz_safety_programs_staging.school_safety_zone_2019_raw

Data Elements

Field Name Description Type
school_name name of school text
address address of school text
work_order_fb work order of flashing beacon text
work_order_wyss work order of watch your speed sign text
locations_zone coordinate of school text
final_sign_installation final sign installation date text
locations_fb location of flashing beacon text
locations_wyss location of watch your speed sign text

bdit_data-sources's People

Contributors

andrewvlouis avatar chelsrosic avatar chmnata avatar dolejarz avatar dorothyzou avatar jovenc avatar jwrcoleman avatar q-schen avatar radumas avatar rcyyu avatar reedrodgers avatar rickl4 avatar rickl57 avatar sunnyqywang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.