Timeline for How to calculate the optimum bus route using pgrouting?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 7, 2014 at 16:06 | comment | added | drizo | I created a new question so I could make clearer what I ask and get an answer closer to what I want. Please check it out! thanks! bit.ly/1x9iUqJ | |
Nov 7, 2014 at 9:03 | comment | added | drizo | mr daniel, excuse me for a moment I am pretty new to this. I have a layer in my database which contains the bus stops as geometry points.I try to use pgr_djikstra on that table-layer without snapping it on a road and it will tell me that the source and target columns have "null" values .. I think I can to the job without snapping the points on the road network but pgr_craetetopology won't work on my tables. What could be wrong? | |
Nov 7, 2014 at 1:17 | comment | added | dkastl | Well, I would say that a bus stop is always on some street. So I would pre-process the data and split the road links where the bus stops are. So where you have one road link before you will have 2 road links afterwards. Just use a new serial ID attribute, then you can keep the old ID as well for both segments. When you run the topology function again using the new ID column, then all your stop points are nodes in the routing network. | |
Nov 6, 2014 at 18:23 | comment | added | drizo | hello, i was expecting that you would answer sooner or later. Well I have imported all shp fiels into my database, both the bus route stops and the roads.shp from osm data. I know how to use pgrouting's algorithm and and how to create network topology. What I don't understand is how the bus stops will be combined with the road shp so that when I visualize my result the node will be connected through the road? Do I need to connect the road network with the bus stops somehow? | |
Nov 6, 2014 at 18:18 | history | answered | dkastl | CC BY-SA 3.0 |