Shortest Path Search
with pgRouting
What is pgRouting ?
An Extension for
PostgreSQL / PostGIS,
...
An Open

Source

project, ...
A Library providing,
...
Shortest Path
Driving Distance
Traveling Salesperson
v2.0
Feature Highlights
➔ Two new All Pairs Short Path algorithms
➔ Bi-directional Dijkstra and A-star algorithms
➔ One to many nodes shortest path search
➔ New TSP solver (with distance matrix)
➔ Turn Restricted shortest path (replaces Shooting
Star algorithm)
➔ A collection of useful utility and graph analytics
functions
More Highlights
➔ Modular library design
➔ Unit tests and automated tests with Travis
➔ Compatibility with PostgreSQL 9.1+ / PostGIS 2.0+
➔ Installs as PostgreSQL EXTENSION
➔ Added pgr_ prefix to functions and types
➔ Improved build process for Windows
➔ Better documentation in several languages
https://www.transifex.com/projects/p/pgrouting/
Big THANK YOU to
- Steve Woodbridge

- Regina Obe

… and the pgRouting community!
Most users need pgRouting for

Road Networks
How do they look like?
Like this ...
… or like this ...
… or sometimes like this.
What makes them real?

Traffic lights

Signs

Road marking
pgRouting

extends

PostgreSQL/PostGIS
What does this mean?
SQL Function
SELECT * FROM pgr_dijkstra('
SELECT gid as id,
source::integer,
target::integer,
length::float8 as cost
FROM ways',
30, 60, false, false);
Query Result
seq | node | edge |
cost
-----+------+------+--------------------0 |
30 |
53 | 0.0591267653820616
1 |
44 |
52 | 0.0665408320949312
2 |
14 |
15 | 0.0809556879332114
3 |
13 |
14 |
0.072694271986776
4 |
12 |
13 |
0.081239348480584
5 |
11 |
12 | 0.00746935522787469
6 |
10 | 6869 | 0.0164274192597773
7 |
59 |
72 | 0.0109385169537801
8 |
60 |
-1 |
0
(9 rows)
gid,
source,
target,
cost,
reverse_cost,
x1, y1,
x2, y2,
rule,
to_cost

source

target
Traffic lights slow down

… so costs must increase.
B

C
1 min

A
cost(A) = cost(A) + 30sec
cost(B) = cost(B) + 30sec
cost(C) = cost(C) + 30sec
cost(D) = cost(D) + 30sec

D
Signs inform about
restrictions and rules
pgRouting 2.0 presentation 2013
cost(A) = length(A)
reverse_cost(A) = ∞

A
Sometimes
the costs
have different
meaning.
cost(A) = length(A) / 2
reverse_cost(A) = length(A) * 4

B

A
Road type
can be used
for cost
calculation.
Not only road types
but also conditions
And you know
what is great about pgRouting?
All costs are dynamic!
… which is the opposite to pre-calculated
If the road is closed ...
… or there is an accident, ...
… there is a sign with
restrictions limited
to a certain time, ...
… bad weather conditions ...
You don't need to
rebuild and reload
your network
You only need to adjust the cost
for this particular road,
… and the next search will go another way.
Flexiblity vs. Speed
Cost can be virtually anything
pgRouting can be used for
different kinds of networks
Canals and
Rivers
Hiking trails
… or any other
kind of networks
Roadmap for Version 2.1
➔ Add “Multi-modal public transit routing”
(GSoC 2011)
➔ Add “Time dependent shortest path” algorithm
(GSoC 2011)
➔ Add “Two Queue” Algorithm (GSoC 2012)
➔ Add DARP and VRP (GSoC 2013)
➔ Add Graph network partitioning (GSoC 2013)
➔ …. further improvements and bug fixes.
https://github.com/pgRouting
More Information
Website:

pgrouting.org

Documentation:
Workshop:
日本語 NEW
Support:

docs.pgrouting.org
workshop.pgrouting.org
workshop.pgrouting.org/ja
pgrouting.org/support.html

… or talk contact us directly:
➔ Daniel Kastl daniel@georepublic.co.jp
➔ Hal Seki hal@georepublic.co.jp
Photos from sxc.hu and
flickr under Creative Commons Licence.

More Related Content

DOC
documents of blue gene/L
PDF
Gnn overview
PPTX
Zone Routing Protocol
PDF
Self-supervised Learning from Video Sequences - Xavier Giro - UPC Barcelona 2019
PDF
15 Machine Learning Multilayer Perceptron
PPT
Learning sets of rules, Sequential Learning Algorithm,FOIL
PDF
Graph Signal Processing for Machine Learning A Review and New Perspectives - ...
PDF
Insights to the Morphology of Planetary Nebulae from 3D Spectroscopy
documents of blue gene/L
Gnn overview
Zone Routing Protocol
Self-supervised Learning from Video Sequences - Xavier Giro - UPC Barcelona 2019
15 Machine Learning Multilayer Perceptron
Learning sets of rules, Sequential Learning Algorithm,FOIL
Graph Signal Processing for Machine Learning A Review and New Perspectives - ...
Insights to the Morphology of Planetary Nebulae from 3D Spectroscopy

Similar to pgRouting 2.0 presentation 2013 (20)

PDF
Shortest Path search in your Database and more with pgRouting - FOSS4G Europe...
PDF
Shortest Path Search with pgRouting
PDF
Shortest Path search for real road networks with pgRouting
PDF
Pgrouting_foss4guk_ross_mcdonald
PDF
Shortest path search for real road networks and dynamic costs with pgRouting
PDF
CPOSC Presentation 20091017
PDF
Shortest Path Search in Real Road Networks with pgRouting
PDF
DCCN Network Layer congestion control TCP
PDF
IRJET- Survey on Adaptive Routing Algorithms
PPTX
Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...
PDF
Shortest route finding using an object oriented database approach
PDF
Urban Bus Route Planning Using Reverse Labeling Dijkstra Algorithm for Tempor...
PPT
Route1
PDF
Apresenta pgrouting
PDF
PPT
Computer Networks Distance Vector Routing lecture10.ppt
PPT
2 reliability-network
PDF
Lecture set 5
PPTX
Routing algorithms
PPTX
Computer Network - Unicast Routing Distance vector Link state vector
Shortest Path search in your Database and more with pgRouting - FOSS4G Europe...
Shortest Path Search with pgRouting
Shortest Path search for real road networks with pgRouting
Pgrouting_foss4guk_ross_mcdonald
Shortest path search for real road networks and dynamic costs with pgRouting
CPOSC Presentation 20091017
Shortest Path Search in Real Road Networks with pgRouting
DCCN Network Layer congestion control TCP
IRJET- Survey on Adaptive Routing Algorithms
Itzhak Benenson - OGiC - Shortest path and service area algorithms and their ...
Shortest route finding using an object oriented database approach
Urban Bus Route Planning Using Reverse Labeling Dijkstra Algorithm for Tempor...
Route1
Apresenta pgrouting
Computer Networks Distance Vector Routing lecture10.ppt
2 reliability-network
Lecture set 5
Routing algorithms
Computer Network - Unicast Routing Distance vector Link state vector
Ad

More from Daniel Kastl (8)

PDF
Location-based Task Management
PDF
Routing in der Datenbank
PDF
Speed up your GIS server - run GIS software on solid-state drives (SSD)
PDF
OSM Japan before and after the Tsunami
PDF
Where the streets have no name
PDF
pgRouting (Deutsch)
PDF
OpenVRP (Deutsch)
PDF
OpenVRP Introduction
Location-based Task Management
Routing in der Datenbank
Speed up your GIS server - run GIS software on solid-state drives (SSD)
OSM Japan before and after the Tsunami
Where the streets have no name
pgRouting (Deutsch)
OpenVRP (Deutsch)
OpenVRP Introduction
Ad

Recently uploaded (20)

PDF
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
A proposed approach for plagiarism detection in Myanmar Unicode text
DOCX
search engine optimization ppt fir known well about this
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
Microsoft Excel 365/2024 Beginner's training
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Five Habits of High-Impact Board Members
PPTX
Benefits of Physical activity for teenagers.pptx
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Comparative analysis of machine learning models for fake news detection in so...
PDF
A contest of sentiment analysis: k-nearest neighbor versus neural network
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Credit Without Borders: AI and Financial Inclusion in Bangladesh
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
How IoT Sensor Integration in 2025 is Transforming Industries Worldwide
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
A proposed approach for plagiarism detection in Myanmar Unicode text
search engine optimization ppt fir known well about this
NewMind AI Weekly Chronicles – August ’25 Week III
Microsoft Excel 365/2024 Beginner's training
Zenith AI: Advanced Artificial Intelligence
Getting started with AI Agents and Multi-Agent Systems
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Five Habits of High-Impact Board Members
Benefits of Physical activity for teenagers.pptx
Module 1.ppt Iot fundamentals and Architecture
CloudStack 4.21: First Look Webinar slides
Comparative analysis of machine learning models for fake news detection in so...
A contest of sentiment analysis: k-nearest neighbor versus neural network
Consumable AI The What, Why & How for Small Teams.pdf
Credit Without Borders: AI and Financial Inclusion in Bangladesh
Convolutional neural network based encoder-decoder for efficient real-time ob...
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf

pgRouting 2.0 presentation 2013