Using the OpenStreetMap data and osm2pgsql
, I created a topology by using the pgr_createTopology()
function. These tables are what I have:
List of relations
Schema | Name | Type | Owner
--------+--------------------------------------+----------+----------
public | geography_columns | view | postgres
public | geometry_columns | view | postgres
public | planet_osm_line | table | postgres
public | planet_osm_nodes | table | postgres
public | planet_osm_point | table | postgres
public | planet_osm_polygon | table | postgres
public | planet_osm_rels | table | postgres
public | planet_osm_roads | table | postgres
public | planet_osm_roads_vertices_pgr | table | postgres
public | planet_osm_roads_vertices_pgr_id_seq | sequence | postgres
public | planet_osm_ways | table | postgres
public | spatial_ref_sys | table | postgres
(12 rows)
Now I want to run pgr_dijkstra()
to find the shortest path.
Which table and columns should I use? Which column represents start_vid and end_vid?