Merge branch 'develop'
This commit is contained in:
@@ -41,7 +41,7 @@ Feature: Car - Handle ferry routes
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | modes | speed |
|
||||
| a | g | abc,cde,efg | 1,2,1 | 24 km/h |
|
||||
| b | f | abc,cde,efg | 1,2,1 | 19 km/h |
|
||||
| a | g | abc,cde,efg | 1,2,1 | 26 km/h |
|
||||
| b | f | abc,cde,efg | 1,2,1 | 20 km/h |
|
||||
| c | e | cde | 2 | 12 km/h |
|
||||
| e | c | cde | 2 | 12 km/h |
|
||||
|
||||
@@ -8,19 +8,25 @@ OSRM will use 4/5 of the projected free-flow speed.
|
||||
|
||||
Scenario: Car - Respect maxspeeds when lower that way type speed
|
||||
Given the node map
|
||||
| a | b | c | d |
|
||||
| a | b | c | d | e | f | g |
|
||||
|
||||
And the ways
|
||||
| nodes | highway | maxspeed |
|
||||
| ab | trunk | |
|
||||
| bc | trunk | 60 |
|
||||
| cd | trunk | FR:urban |
|
||||
| nodes | highway | maxspeed |
|
||||
| ab | trunk | |
|
||||
| bc | trunk | 60 |
|
||||
| cd | trunk | FR:urban |
|
||||
| de | trunk | CH:rural |
|
||||
| ef | trunk | CH:trunk |
|
||||
| fg | trunk | CH:motorway |
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | speed |
|
||||
| a | b | ab | 67 km/h |
|
||||
| b | c | bc | 48 km/h +- 1 |
|
||||
| c | d | cd | 40 km/h |
|
||||
| from | to | route | speed |
|
||||
| a | b | ab | 78 km/h |
|
||||
| b | c | bc | 59 km/h +- 1 |
|
||||
| c | d | cd | 50 km/h |
|
||||
| d | e | de | 75 km/h |
|
||||
| e | f | ef | 90 km/h |
|
||||
| f | g | fg | 105 km/h |
|
||||
|
||||
Scenario: Car - Do not ignore maxspeed when higher than way speed
|
||||
Given the node map
|
||||
@@ -34,22 +40,22 @@ OSRM will use 4/5 of the projected free-flow speed.
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | speed |
|
||||
| a | b | ab | 20 km/h |
|
||||
| b | c | bc | 72 km/h +- 1 |
|
||||
| c | d | cd | 40 km/h |
|
||||
| a | b | ab | 31 km/h |
|
||||
| b | c | bc | 83 km/h +- 1 |
|
||||
| c | d | cd | 50 km/h |
|
||||
|
||||
Scenario: Car - Forward/backward maxspeed
|
||||
Given a grid size of 100 meters
|
||||
|
||||
Then routability should be
|
||||
| highway | maxspeed | maxspeed:forward | maxspeed:backward | forw | backw |
|
||||
| primary | | | | 51 km/h | 51 km/h |
|
||||
| primary | 60 | | | 48 km/h | 48 km/h |
|
||||
| primary | | 60 | | 48 km/h | 51 km/h |
|
||||
| primary | | | 60 | 51 km/h | 48 km/h |
|
||||
| primary | 15 | 60 | | 48 km/h | 12 km/h |
|
||||
| primary | 15 | | 60 | 12 km/h | 48 km/h |
|
||||
| primary | 15 | 30 | 60 | 24 km/h | 48 km/h |
|
||||
| primary | | | | 65 km/h | 65 km/h |
|
||||
| primary | 60 | | | 60 km/h | 60 km/h |
|
||||
| primary | | 60 | | 60 km/h | 65 km/h |
|
||||
| primary | | | 60 | 65 km/h | 60 km/h |
|
||||
| primary | 15 | 60 | | 60 km/h | 23 km/h |
|
||||
| primary | 15 | | 60 | 23 km/h | 60 km/h |
|
||||
| primary | 15 | 30 | 60 | 34 km/h | 60 km/h |
|
||||
|
||||
Scenario: Car - Maxspeed should not allow routing on unroutable ways
|
||||
Then routability should be
|
||||
|
||||
+14
-14
@@ -8,17 +8,17 @@ Feature: Car - speeds
|
||||
Scenario: Car - speed of various way types
|
||||
Then routability should be
|
||||
| highway | oneway | bothw |
|
||||
| motorway | no | 72 km/h |
|
||||
| motorway_link | no | 36 km/h |
|
||||
| trunk | no | 67 km/h +- 1 |
|
||||
| trunk_link | no | 32 km/h +- 1 |
|
||||
| primary | no | 52 km/h +- 1 |
|
||||
| primary_link | no | 24 km/h |
|
||||
| secondary | no | 43 km/h +- 1 |
|
||||
| secondary_link | no | 20 km/h |
|
||||
| tertiary | no | 32 km/h |
|
||||
| tertiary_link | no | 16 km/h |
|
||||
| unclassified | no | 20 km/h |
|
||||
| residential | no | 20 km/h |
|
||||
| living_street | no | 8 km/h |
|
||||
| service | no | 12 km/h |
|
||||
| motorway | no | 82 km/h |
|
||||
| motorway_link | no | 47 km/h |
|
||||
| trunk | no | 79 km/h +- 1 |
|
||||
| trunk_link | no | 43 km/h +- 1 |
|
||||
| primary | no | 63 km/h +- 1 |
|
||||
| primary_link | no | 34 km/h |
|
||||
| secondary | no | 54 km/h +- 1 |
|
||||
| secondary_link | no | 31 km/h |
|
||||
| tertiary | no | 43 km/h |
|
||||
| tertiary_link | no | 26 km/h |
|
||||
| unclassified | no | 31 km/h |
|
||||
| residential | no | 31 km/h |
|
||||
| living_street | no | 18 km/h |
|
||||
| service | no | 23 km/h |
|
||||
|
||||
@@ -64,64 +64,64 @@ Feature: Car - Surfaces
|
||||
Scenario: Car - Surface should reduce speed
|
||||
Then routability should be
|
||||
| highway | oneway | surface | forw | backw |
|
||||
| motorway | no | | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | asphalt | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | concrete | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | concrete:plates | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | concrete:lanes | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | paved | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | cement | 65 km/h +-1 | 65 km/h +-1 |
|
||||
| motorway | no | compacted | 65 km/h +-1 | 65 km/h +-1 |
|
||||
| motorway | no | fine_gravel | 65 km/h +-1 | 65 km/h +-1 |
|
||||
| motorway | no | paving_stones | 48 km/h +-1 | 48 km/h +-1 |
|
||||
| motorway | no | metal | 48 km/h +-1 | 48 km/h +-1 |
|
||||
| motorway | no | bricks | 48 km/h +-1 | 48 km/h +-1 |
|
||||
| motorway | no | grass | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | wood | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | sett | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | grass_paver | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | gravel | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | unpaved | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | ground | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | dirt | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | pebblestone | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | tartan | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | cobblestone | 24 km/h +-1 | 24 km/h +-1 |
|
||||
| motorway | no | clay | 24 km/h +-1 | 24 km/h +-1 |
|
||||
| motorway | no | earth | 16 km/h +-1 | 16 km/h +-1 |
|
||||
| motorway | no | stone | 16 km/h +-1 | 16 km/h +-1 |
|
||||
| motorway | no | rocky | 16 km/h +-1 | 16 km/h +-1 |
|
||||
| motorway | no | sand | 16 km/h +-1 | 16 km/h +-1 |
|
||||
| motorway | no | | 80 km/h +-1 | 80 km/h +-1 |
|
||||
| motorway | no | asphalt | 80 km/h +-1 | 80 km/h +-1 |
|
||||
| motorway | no | concrete | 80 km/h +-1 | 80 km/h +-1 |
|
||||
| motorway | no | concrete:plates | 80 km/h +-1 | 80 km/h +-1 |
|
||||
| motorway | no | concrete:lanes | 80 km/h +-1 | 80 km/h +-1 |
|
||||
| motorway | no | paved | 80 km/h +-1 | 80 km/h +-1 |
|
||||
| motorway | no | cement | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | compacted | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | fine_gravel | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | paving_stones | 60 km/h +-1 | 60 km/h +-1 |
|
||||
| motorway | no | metal | 60 km/h +-1 | 60 km/h +-1 |
|
||||
| motorway | no | bricks | 60 km/h +-1 | 60 km/h +-1 |
|
||||
| motorway | no | grass | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | wood | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | sett | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | grass_paver | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | gravel | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | unpaved | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | ground | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | dirt | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | pebblestone | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | tartan | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | cobblestone | 34 km/h +-1 | 34 km/h +-1 |
|
||||
| motorway | no | clay | 34 km/h +-1 | 34 km/h +-1 |
|
||||
| motorway | no | earth | 26 km/h +-1 | 26 km/h +-1 |
|
||||
| motorway | no | stone | 26 km/h +-1 | 26 km/h +-1 |
|
||||
| motorway | no | rocky | 26 km/h +-1 | 26 km/h +-1 |
|
||||
| motorway | no | sand | 26 km/h +-1 | 26 km/h +-1 |
|
||||
|
||||
Scenario: Car - Tracktypes should reduce speed
|
||||
Then routability should be
|
||||
| highway | oneway | tracktype | forw | backw |
|
||||
| motorway | no | | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | grade1 | 48 km/h +-1 | 48 km/h +-1 |
|
||||
| motorway | no | grade2 | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | grade3 | 24 km/h +-1 | 24 km/h +-1 |
|
||||
| motorway | no | grade4 | 20 km/h +-1 | 20 km/h +-1 |
|
||||
| motorway | no | grade5 | 16 km/h +-1 | 16 km/h +-1 |
|
||||
| motorway | no | | 80 km/h +-1 | 80 km/h +-1 |
|
||||
| motorway | no | grade1 | 60 km/h +-1 | 60 km/h +-1 |
|
||||
| motorway | no | grade2 | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | grade3 | 34 km/h +-1 | 34 km/h +-1 |
|
||||
| motorway | no | grade4 | 31 km/h +-1 | 31 km/h +-1 |
|
||||
| motorway | no | grade5 | 26 km/h +-1 | 26 km/h +-1 |
|
||||
|
||||
Scenario: Car - Smoothness should reduce speed
|
||||
Then routability should be
|
||||
| highway | oneway | smoothness | forw | backw |
|
||||
| motorway | no | | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | intermediate | 65 km/h +-1 | 65 km/h +-1 |
|
||||
| motorway | no | bad | 32 km/h +-1 | 32 km/h +-1 |
|
||||
| motorway | no | very_bad | 16 km/h +-1 | 16 km/h +-1 |
|
||||
| motorway | no | horrible | 8 km/h +-1 | 8 km/h +-1 |
|
||||
| motorway | no | very_horrible | 4 km/h +-1 | 4 km/h +-1 |
|
||||
| motorway | no | | 80 km/h +-1 | 80 km/h +-1 |
|
||||
| motorway | no | intermediate | 72 km/h +-1 | 72 km/h +-1 |
|
||||
| motorway | no | bad | 42 km/h +-1 | 42 km/h +-1 |
|
||||
| motorway | no | very_bad | 26 km/h +-1 | 26 km/h +-1 |
|
||||
| motorway | no | horrible | 18 km/h +-1 | 18 km/h +-1 |
|
||||
| motorway | no | very_horrible | 15 km/h +-1 | 15 km/h +-1 |
|
||||
|
||||
Scenario: Car - Combination of surface tags should use lowest speed
|
||||
Then routability should be
|
||||
| highway | oneway | tracktype | surface | smoothness | backw | forw |
|
||||
| motorway | no | | | | 72 km/h | 72 km/h |
|
||||
| service | no | grade1 | asphalt | excellent | 12 km/h | 12 km/h |
|
||||
| motorway | no | grade5 | asphalt | excellent | 16 km/h | 16 km/h |
|
||||
| motorway | no | grade1 | mud | excellent | 8 km/h | 8 km/h |
|
||||
| motorway | no | grade1 | asphalt | very_horrible | 4 km/h | 4 km/h |
|
||||
| service | no | grade5 | mud | very_horrible | 4 km/h | 4 km/h |
|
||||
| motorway | no | | | | 80 km/h | 80 km/h |
|
||||
| service | no | grade1 | asphalt | excellent | 23 km/h | 23 km/h |
|
||||
| motorway | no | grade5 | asphalt | excellent | 26 km/h | 26 km/h |
|
||||
| motorway | no | grade1 | mud | excellent | 18 km/h | 18 km/h |
|
||||
| motorway | no | grade1 | asphalt | very_horrible | 15 km/h | 15 km/h |
|
||||
| service | no | grade5 | mud | very_horrible | 15 km/h | 15 km/h |
|
||||
|
||||
Scenario: Car - Surfaces should not affect oneway direction
|
||||
Then routability should be
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
When /^I request a travel time matrix I should get$/ do |table|
|
||||
|
||||
no_route = 2147483647 # MAX_INT
|
||||
|
||||
raise "*** Top-left cell of matrix table must be empty" unless table.headers[0]==""
|
||||
|
||||
nodes = []
|
||||
column_headers = table.headers[1..-1]
|
||||
row_headers = table.rows.map { |h| h.first }
|
||||
unless column_headers==row_headers
|
||||
raise "*** Column and row headers must match in matrix table, got #{column_headers.inspect} and #{row_headers.inspect}"
|
||||
end
|
||||
column_headers.each do |node_name|
|
||||
node = find_node_by_name(node_name)
|
||||
raise "*** unknown node '#{node_name}" unless node
|
||||
nodes << node
|
||||
end
|
||||
|
||||
reprocess
|
||||
actual = []
|
||||
actual << table.headers
|
||||
OSRMLoader.load(self,"#{prepared_file}.osrm") do
|
||||
|
||||
# compute matrix
|
||||
params = @query_params
|
||||
response = request_table nodes, params
|
||||
if response.body.empty? == false
|
||||
json = JSON.parse response.body
|
||||
result = json['distance_table']
|
||||
end
|
||||
|
||||
# compare actual and expected result, one row at a time
|
||||
table.rows.each_with_index do |row,ri|
|
||||
|
||||
# fuzzy match
|
||||
ok = true
|
||||
0.upto(nodes.size-1) do |i|
|
||||
if FuzzyMatch.match result[ri][i], row[i+1]
|
||||
result[ri][i] = row[i+1]
|
||||
elsif row[i+1]=="" and result[ri][i]==no_route
|
||||
result[ri][i] = ""
|
||||
else
|
||||
result[ri][i] = result[ri][i].to_s
|
||||
ok = false
|
||||
end
|
||||
end
|
||||
|
||||
# add row header
|
||||
r = [row[0],result[ri]].flatten
|
||||
|
||||
# store row for comparison
|
||||
actual << r
|
||||
end
|
||||
end
|
||||
table.routing_diff! actual
|
||||
end
|
||||
@@ -3,5 +3,5 @@ Then /^I should get a valid timestamp/ do
|
||||
step "response should be valid JSON"
|
||||
step "response should be well-formed"
|
||||
expect(@json['timestamp'].class).to eq(String)
|
||||
expect(@json['timestamp']).to eq(OSM_TIMESTAMP)
|
||||
expect(@json['timestamp']).to eq("2000-01-01T00:00:00Z")
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
require 'socket'
|
||||
require 'open3'
|
||||
require 'json'
|
||||
|
||||
# Only one isntance of osrm-routed is ever launched, to avoid collisions.
|
||||
# The default is to keep osrm-routed running and load data with datastore.
|
||||
|
||||
@@ -43,6 +43,11 @@ def request_route waypoints, params={}
|
||||
request_path "viaroute", waypoints, defaults.merge(params)
|
||||
end
|
||||
|
||||
def request_table waypoints, params={}
|
||||
defaults = { 'output' => 'json' }
|
||||
request_path "table", waypoints, defaults.merge(params)
|
||||
end
|
||||
|
||||
def got_route? response
|
||||
if response.code == "200" && !response.body.empty?
|
||||
json = JSON.parse response.body
|
||||
|
||||
@@ -145,7 +145,7 @@ Feature: Distance calculation
|
||||
| a | h | abcdefgh | 70m +-14 |
|
||||
|
||||
Scenario: Geometric distances
|
||||
Given a grid size of 1000 meters
|
||||
Given a grid size of 100 meters
|
||||
Given the node map
|
||||
| v | w | y | a | b | c | d |
|
||||
| u | | | | | | e |
|
||||
@@ -184,30 +184,30 @@ Feature: Distance calculation
|
||||
|
||||
When I route I should get
|
||||
| from | to | route | distance |
|
||||
| x | a | xa | 3000m +-2 |
|
||||
| x | b | xb | 3162m +-2 |
|
||||
| x | c | xc | 3606m +-2 |
|
||||
| x | d | xd | 4243m +-2 |
|
||||
| x | e | xe | 3606m +-2 |
|
||||
| x | f | xf | 3162m +-2 |
|
||||
| x | g | xg | 3000m +-2 |
|
||||
| x | h | xh | 3162m +-2 |
|
||||
| x | i | xi | 3606m +-2 |
|
||||
| x | j | xj | 4243m +-2 |
|
||||
| x | k | xk | 3606m +-2 |
|
||||
| x | l | xl | 3162m +-2 |
|
||||
| x | m | xm | 3000m +-2 |
|
||||
| x | n | xn | 3162m +-2 |
|
||||
| x | o | xo | 3606m +-2 |
|
||||
| x | p | xp | 4243m +-2 |
|
||||
| x | q | xq | 3606m +-2 |
|
||||
| x | r | xr | 3162m +-2 |
|
||||
| x | s | xs | 3000m +-2 |
|
||||
| x | t | xt | 3162m +-2 |
|
||||
| x | u | xu | 3606m +-2 |
|
||||
| x | v | xv | 4243m +-2 |
|
||||
| x | w | xw | 3606m +-2 |
|
||||
| x | y | xy | 3162m +-2 |
|
||||
| x | a | xa | 300m +-2 |
|
||||
| x | b | xb | 316m +-2 |
|
||||
| x | c | xc | 360m +-2 |
|
||||
| x | d | xd | 424m +-2 |
|
||||
| x | e | xe | 360m +-2 |
|
||||
| x | f | xf | 316m +-2 |
|
||||
| x | g | xg | 300m +-2 |
|
||||
| x | h | xh | 316m +-2 |
|
||||
| x | i | xi | 360m +-2 |
|
||||
| x | j | xj | 424m +-2 |
|
||||
| x | k | xk | 360m +-2 |
|
||||
| x | l | xl | 316m +-2 |
|
||||
| x | m | xm | 300m +-2 |
|
||||
| x | n | xn | 316m +-2 |
|
||||
| x | o | xo | 360m +-2 |
|
||||
| x | p | xp | 424m +-2 |
|
||||
| x | q | xq | 360m +-2 |
|
||||
| x | r | xr | 316m +-2 |
|
||||
| x | s | xs | 300m +-2 |
|
||||
| x | t | xt | 316m +-2 |
|
||||
| x | u | xu | 360m +-2 |
|
||||
| x | v | xv | 424m +-2 |
|
||||
| x | w | xw | 360m +-2 |
|
||||
| x | y | xy | 316m +-2 |
|
||||
|
||||
@maze
|
||||
Scenario: Distance of a maze of short segments
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
@matrix @testbot
|
||||
Feature: Basic Distance Matrix
|
||||
# note that results are travel time, specified in 1/10th of seconds
|
||||
# since testbot uses a default speed of 100m/10s, the result matches
|
||||
# the number of meters as long as the way type is the default 'primary'
|
||||
|
||||
Background:
|
||||
Given the profile "testbot"
|
||||
|
||||
Scenario: Testbot - Travel time matrix of minimal network
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes |
|
||||
| ab |
|
||||
|
||||
When I request a travel time matrix I should get
|
||||
| | a | b |
|
||||
| a | 0 | 100 |
|
||||
| b | 100 | 0 |
|
||||
|
||||
Scenario: Testbot - Travel time matrix with different way speeds
|
||||
Given the node map
|
||||
| a | b | c | d |
|
||||
|
||||
And the ways
|
||||
| nodes | highway |
|
||||
| ab | primary |
|
||||
| bc | secondary |
|
||||
| cd | tertiary |
|
||||
|
||||
When I request a travel time matrix I should get
|
||||
| | a | b | c | d |
|
||||
| a | 0 | 100 | 300 | 600 |
|
||||
| b | 100 | 0 | 200 | 500 |
|
||||
| c | 300 | 200 | 0 | 300 |
|
||||
| d | 600 | 500 | 300 | 0 |
|
||||
|
||||
Scenario: Testbot - Travel time matrix with fuzzy match
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes |
|
||||
| ab |
|
||||
|
||||
When I request a travel time matrix I should get
|
||||
| | a | b |
|
||||
| a | 0 | 95 +- 10 |
|
||||
| b | 95 ~10% | 0 |
|
||||
|
||||
Scenario: Testbot - Travel time matrix of small grid
|
||||
Given the node map
|
||||
| a | b | c |
|
||||
| d | e | f |
|
||||
|
||||
And the ways
|
||||
| nodes |
|
||||
| abc |
|
||||
| def |
|
||||
| ad |
|
||||
| be |
|
||||
| cf |
|
||||
|
||||
When I request a travel time matrix I should get
|
||||
| | a | b | e | f |
|
||||
| a | 0 | 100 | 200 | 300 |
|
||||
| b | 100 | 0 | 100 | 200 |
|
||||
| e | 200 | 100 | 0 | 100 |
|
||||
| f | 300 | 200 | 100 | 0 |
|
||||
|
||||
Scenario: Testbot - Travel time matrix of network with unroutable parts
|
||||
Given the node map
|
||||
| a | b |
|
||||
|
||||
And the ways
|
||||
| nodes | oneway |
|
||||
| ab | yes |
|
||||
|
||||
When I request a travel time matrix I should get
|
||||
| | a | b |
|
||||
| a | 0 | 100 |
|
||||
| b | | 0 |
|
||||
|
||||
Scenario: Testbot - Travel time matrix of network with oneways
|
||||
Given the node map
|
||||
| x | a | b | y |
|
||||
| | d | e | |
|
||||
|
||||
And the ways
|
||||
| nodes | oneway |
|
||||
| abeda | yes |
|
||||
| xa | |
|
||||
| by | |
|
||||
|
||||
When I request a travel time matrix I should get
|
||||
| | x | y | d | e |
|
||||
| x | 0 | 300 | 400 | 300 |
|
||||
| y | 500 | 0 | 300 | 200 |
|
||||
| d | 200 | 300 | 0 | 300 |
|
||||
| e | 300 | 400 | 100 | 0 |
|
||||
Reference in New Issue
Block a user