18
Creating CountDracula Open Source Count Management Tool Lisa Zorn, Dan Tischler, Elizabeth Sall SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY TRB 93rd Annual Meeting January 13 th , 2014, Washington D.C.

Creating CountDracula: An Open Source Count Management Tool

Embed Size (px)

Citation preview

Creating CountDraculaOpen Source Count Management Tool

Lisa Zorn, Dan Tischler, Elizabeth Sall

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY

TRB 93rd Annual Meeting

January 13th, 2014, Washington D.C.

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 2

Why?Neighborhood Study

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 3

Why?Consulting Engineer Data Request

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 4

Why?Public Requests

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 5

Why?Dynamic Traffic Assignment Validation

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 6

Why?Existing Resources

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 7

Requirements

• Store count data electronically in a single location

• Allow universal access

• Easy and intuitive queries

• Times, date, or location

• API or Web-based GUI

• Download data into commonly used data

formats, e.g. UTDF

• Various levels of account permissions

• Straight forward user uploads

• Store meta-data

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 8

Development

• Approach

• In-house development

• Open source

• Benefits

• Fulfill all design requirements

• Share with others

• Collaborative dev possibilities

• Consultant flexibility

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 9

Design• Django

• Open source

• Active dev community

• Python-based

• Object-relational mapper

• Built-in admin interface

• Elegant URL design

• Customizable template views

• GeoDjango (add-on)

• Spatial data types

• Efficient spatial queries using PostGIS

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 10

Data Upload

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 11

Data Upload

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 12

Data Models• Nodes

• location

• StreetName

• name, suffix, nodes

• TurnCountLocation

• from_street, from_dir, intersection_street, to_street, to_dir, node

• TurnCount

• location, count, date, year, start_time, duration, veh_type,

source, project, user

• MainlineCountLocation

• street, dir, from_street, from_node, to_street, to_node

• MainlineCount

• location, count, date, year, start_time, duration, veh_type, source,

project, user, position_on_link

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 13

Data Models

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 14

CountDracula TodayWeb-Based Interface

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 15

CountDracula TodayAPI

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 16

CountDracula TodayAdmin

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 17

Questions? [email protected]

https://github.com/sfcta/CountDracula

SAN FRANCISCO COUNTY TRANSPORTATION AUTHORITY 18

Objectives