This repository have library for point to point routing.
-
Install PostgreSQL - version 9.1
-
Install PostGIS - version 1.5
-
Install Pgrouting - version 1.05
Start pgAdmin and create a new database based on your PostGIS template. Open a Query dialog, load and execute the
sql file available here.
-
start_id
-
end_id
-
the_geom
-
osm_name
-
speed_in_kmh
-
length
-
reverse_length
-
row_flag (default value ‘false’)
point_to_point_shortest_path(source_point_geom varchar, target_point_geom varchar, tbl varchar, distance double precision, directed boolean, has_reverse_cost boolean) )
SELECT * from point_to_point_shortest_path('source_point_geometry_in_text_format','target_point_geometry_in_text_format','road_networks',#{0.003},false, false)"