Enterprise Transportation Routing System

Independent Enterprise GIS Project · San Francisco · Version 1.0.0

Enterprise Transportation Routing System cover artwork: a validated San Francisco road-network map with routing overlay, project title, technology stack, and author credit
16,081Road Edges
9,644Network Vertices
1,246.64Roadway Miles
4Map Products

Turning raw road data into a validated, routable network.

A database-first enterprise GIS case study demonstrating how a large urban roadway network is structured, validated, and turned into repeatable routing and accessibility decision-support products.

Road network data rarely arrives in a state ready for analysis. Edges are disconnected, geometries need review, and a network graph has to be built and validated before any routing question can be answered reliably. This project addresses that problem directly: a PostgreSQL/PostGIS database holds the network model, pgRouting builds the routable graph, and SQL-based topology preparation turns raw San Francisco road data into a validated network of 16,081 edges and 9,644 vertices.

From that network, four decision-support map packages were produced in QGIS — covering emergency response routing, nearest-facility accessibility, emergency response coverage, and infrastructure inspection routing. Each is backed by a reproducible SQL workflow, documented QA/QC, and backup/restore validation, so the build can be re-run and independently checked rather than taken on faith.

Designed as a portfolio-grade demonstration of spatial database engineering, network topology preparation, pgRouting analysis, and enterprise-style QA/QC for transportation decision support.

Built for the kinds of decisions transportation agencies make daily.

This system demonstrates a reproducible workflow for the questions routing, accessibility, and service-coverage systems are typically asked to answer.

Designed to support

  • Transportation agencies
  • Utility organizations
  • Public works departments
  • Emergency-response planners
  • Infrastructure inspection teams
  • Public-sector GIS teams

Decisions it demonstrates support for

  • Shortest-path routing
  • Nearest-facility accessibility
  • Emergency-response coverage
  • Infrastructure inspection planning
  • Service-area analysis
  • Operational route prioritization

This project provides a reproducible workflow for these decision types. It is an independently designed and validated system, not a claim of deployment by any specific agency — see Methodological Scope & Limitations below.

A database-first pipeline from raw road data to decision-ready maps.

Each stage runs in PostgreSQL/PostGIS and QGIS, with SQL and Python automation supporting a reproducible build.

Raw Road Data Staging & Cleaning PostGIS Network Model Topology & Graph Preparation pgRouting Analysis QGIS Decision-Support Maps QA/QC & Release Package

Core Components

PostgreSQL PostGIS pgRouting SQL Python QGIS ArcGIS Pro GitHub Backup & Restore Validation Release Documentation

Preparing a routable, topologically valid network.

Before any routing query can run, the road network has to be structured, cleaned, and validated as a connected graph.

Four map products, four operational questions.

Each product pairs a specific operational question with a pgRouting-based method and a QGIS cartographic output. Select an image to view it enlarged.

01 · Emergency Response

Emergency Response Routing

Operational QuestionWhich route reaches an emergency location fastest across the validated network?

MethodpgRouting shortest-path analysis over the PostGIS network graph.

Decision-Support ValueSupports reproducible route-time comparison for emergency-response planning.

pgRouting Shortest-Path Analysis PostGIS

02 · Accessibility Analysis

Nearest Facility Accessibility

Operational QuestionWhich facility is nearest, and how accessible is it, from any point on the network?

MethodpgRouting nearest-facility analysis across network vertices.

Decision-Support ValueSupports facility-siting review and accessibility-gap identification.

pgRouting Accessibility Analysis Network Vertices

03 · Service Coverage

Emergency Response Coverage

Operational QuestionWhat area can be reached within a given response threshold?

MethodpgRouting service-area analysis over the routable network.

Decision-Support ValueSupports coverage review and gap identification for response planning.

pgRouting Service-Area Analysis QGIS Cartography

04 · Infrastructure Inspection

Infrastructure Inspection Routing

Operational QuestionWhat is an efficient inspection sequence across a set of infrastructure locations?

MethodRoute-optimization analysis over the validated network graph.

Decision-Support ValueSupports infrastructure inspection planning and route prioritization.

pgRouting Route Optimization Infrastructure Inspection

A repeatable, numbered SQL workflow.

Each stage is built as a numbered SQL step so it can be re-run and independently verified.

  1. 01

    Structure the database

    Organize schemas and tables in PostgreSQL/PostGIS for network storage.

  2. 02

    Prepare the road network

    Load and clean road geometries into the network data model.

  3. 03

    Validate topology and connectivity

    Check node and edge connectivity and topological integrity across the network.

  4. 04

    Build routing costs and graph attributes

    Prepare source/target vertices and cost attributes required by pgRouting.

  5. 05

    Run pgRouting analyses

    Execute shortest-path, accessibility, service-area, and inspection-routing queries.

  6. 06

    Inspect outputs in QGIS

    Review and cartographically finalize each decision-support map.

  7. 07

    Validate results

    Check SQL query outputs and map results against expected network behavior.

  8. 08

    Package documentation and release materials

    Assemble methodology notes, QA/QC results, and the versioned release package.

Validation is part of the release, not an afterthought.

The build follows a numbered SQL workflow with automated checks at each stage, plus manual review before release.

Includes automated database, geometry, CRS, network, and routing tests, backup/restore validation, and release acceptance testing.

  • Geometry validation
  • Topology and connectivity checks
  • Automated QA/QC scripts (database, geometry, CRS, network, routing)
  • SQL result verification
  • Map-output review
  • Backup and restore validation
  • Reproducibility checks
  • Documentation review
  • Versioned release preparation
  • Release acceptance testing

What the repository contains.

The project is organized so a reviewer can inspect the database structure, the SQL workflow, the map outputs, and the supporting documentation.

Database & SQL

  • Schema organization
  • Network tables
  • Routing queries
  • Topology preparation scripts
  • QA/QC scripts

Map Products

  • Four decision-support maps
  • Map exports
  • Cartographic layouts

Documentation

  • Methodology notes
  • Implementation notes
  • Executive summary
  • Release package
  • Backup/restore validation notes

What this project demonstrates — and what it doesn't.

This project demonstrates enterprise-style GIS architecture: a database-first design in PostgreSQL/PostGIS, a validated pgRouting network graph, and reproducible routing, accessibility, and service-area workflows for San Francisco's roadway network.

It is an independently designed and validated project. It is not evidence of operational deployment by any public agency, and it is not a substitute for live dispatch, real-time traffic, road-closure, or field-condition systems. It should not be presented as a production emergency-response platform.

← Back to All Work