Skip to content

Conversation

@rustprooflabs
Copy link
Owner

@rustprooflabs rustprooflabs commented Jan 2, 2026

Details

More routing focused improvements.

Changes

  • Rename procedure pgrouting_version_check to extension_version_check
  • extension_version_check ensures convert extension is installed
  • New function osm.route_motor_travel_time(route_vertex_id_start, route_vertex_id_end) for built-in travel-time routing
  • Expand pgosm.road lookup table with traffic_penalty_normal column for additional cost-modeling scenarios for travel time scenarios
  • Expand documentation on routing, simplifying the page I assume people care most about (roads -> travel time).

Traffic Penalty notes

Expands the pgosm.road lookup table with a traffic_penalty_normal column to use in cost model for travel-time routing scenarios.

The traffic_penalty concept makes sense but the name doesn't quite make sense b/c 1.0 is no penalty and 0.0 should effectively block a route. Other than that naming oddity...

The values used here seem to be decent average from the limited Denver Colorado area testing I've done so far. I found some basic starting points for travel rates compared to speed limits in traffic (vague internet searching) but didn't preserve those sources.

…limited Denver Colorado area testing. Starting point.
@rustprooflabs rustprooflabs added this to the 1.2.2 milestone Jan 2, 2026
@rustprooflabs rustprooflabs self-assigned this Jan 2, 2026
@rustprooflabs rustprooflabs added the enhancement New feature or request label Jan 2, 2026
@rustprooflabs rustprooflabs changed the title Routing: Add starting point for traffic cost model Routing: Improve traffic cost model, rework Documentation for Routing Jan 4, 2026
@rustprooflabs rustprooflabs added the documentation Improvements or additions to documentation label Jan 4, 2026
@rustprooflabs rustprooflabs merged commit 7d6d339 into main Jan 4, 2026
4 checks passed
@rustprooflabs rustprooflabs deleted the expand-road-helper-table branch January 4, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants