Closed Stophface closed 7 years ago
1.1) https://github.com/pgRouting/osm2pgrouting/blob/master/src/Export2DB.cpp#L460 1.2) _s is for seconds
2.1) yes, if it exists otherwise uses the default value of maxspeed in the configuration file you are using 2.2) by converting to km/hr: https://github.com/pgRouting/osm2pgrouting/blob/master/src/Way.cpp#L248 2.3) the default value of maxspeed in the configuration file you are using
Awesome, thanks. Unfortunately my C++ is not good enough to derive these information from the code. Thats why I asked here. Would be nice to have that on the docs somewhere.
I have two questions regarding the rules the columns in the
ways
table are createdHow is the
cost_s
column inosm2pgrouting
is calculated? Are thatseconds
? Seconds of what? Is it the traveltime and the speed to calculate the traveltime is used frommaxspeed_forward
How does
osm2pgrouting
create themaxspeed_forward
column in theways
table? 2.1 Is the number extracted from thekey:maxspeed
https://wiki.openstreetmap.org/wiki/Key:maxspeed ? 2.2 How does it treat different units (mph
andkmh
). 2.3 If there is no value inkey:maxspeed
, what numbers/value will it insert?