/
srv
/
osrm
/
osrm-backend
/
features
/
testbot
/
/srv/osrm/osrm-backend/features/testbot
mkdir
upload
Name
Size
Mode
Actions
64bit.feature
856
0644
edit
dl
rm
alternative.feature
1734
0644
edit
dl
rm
alternative_loop.feature
2328
0644
edit
dl
rm
annotations.feature
3838
0644
edit
dl
rm
approaches.feature
9011
0644
edit
dl
rm
bad.feature
2335
0644
edit
dl
rm
basic.feature
9262
0644
edit
dl
rm
bearing.feature
8226
0644
edit
dl
rm
bearing_param.feature
4881
0644
edit
dl
rm
compression.feature
637
0644
edit
dl
rm
continue_straight.feature
2511
0644
edit
dl
rm
distance.feature
6996
0644
edit
dl
rm
distance_matrix.feature
23582
0644
edit
dl
rm
duration.feature
1318
0644
edit
dl
rm
duration_matrix.feature
23189
0644
edit
dl
rm
example.feature
1300
0644
edit
dl
rm
exclude.feature
3865
0644
edit
dl
rm
exclude_regressions.feature
2407
0644
edit
dl
rm
fastest.feature
1106
0644
edit
dl
rm
ferry.feature
7935
0644
edit
dl
rm
fixed.feature
5148
0644
edit
dl
rm
geometry.feature
712
0644
edit
dl
rm
graph.feature
1038
0644
edit
dl
rm
impedance.feature
3370
0644
edit
dl
rm
load.feature
2363
0644
edit
dl
rm
loop.feature
2913
0644
edit
dl
rm
matching.feature
23225
0644
edit
dl
rm
maxspeed.feature
1332
0644
edit
dl
rm
mode.feature
11092
0644
edit
dl
rm
multi_level_routing.feature
8916
0644
edit
dl
rm
nil.feature
1100
0644
edit
dl
rm
oneway.feature
1075
0644
edit
dl
rm
oneway_phantom.feature
2648
0644
edit
dl
rm
opposite.feature
582
0644
edit
dl
rm
origin.feature
2680
0644
edit
dl
rm
overlap.feature
1100
0644
edit
dl
rm
penalty.feature
5161
0644
edit
dl
rm
planetary.feature
2474
0644
edit
dl
rm
projection.feature
2983
0644
edit
dl
rm
routes.feature
1074
0644
edit
dl
rm
snap.feature
5131
0644
edit
dl
rm
snap_intersection.feature
18784
0644
edit
dl
rm
speed.feature
1005
0644
edit
dl
rm
status.feature
3808
0644
edit
dl
rm
summary.feature
2342
0644
edit
dl
rm
time.feature
8240
0644
edit
dl
rm
traffic_speeds.feature
6899
0644
edit
dl
rm
traffic_speeds_overflow.feature
1060
0644
edit
dl
rm
traffic_turn_penalties.feature
2633
0644
edit
dl
rm
trip.feature
12981
0644
edit
dl
rm
turn_penalty.feature
1031
0644
edit
dl
rm
utf.feature
4303
0644
edit
dl
rm
via.feature
12213
0644
edit
dl
rm
weight.feature
13634
0644
edit
dl
rm
zero-speed-updates.feature
4965
0644
edit
dl
rm
Edit:
/srv/osrm/osrm-backend/features/testbot/annotations.feature
(3838B)
@routing @speed @annotations Feature: Annotations Scenario: Ensure that turn penalties aren't included in annotations Given the profile "turnbot" Given a grid size of 100 meters Given the node map """ h i j k l m """ And the query options | annotations | duration,speed,weight,nodes | And the ways | nodes | highway | | hk | residential | | il | residential | | jk | residential | | lk | residential | | lm | residential | When I route I should get | from | to | route | a:speed | a:weight | a:nodes | | h | j | hk,jk,jk | 6.7:6.7 | 15:15 | 1:4:3 | | i | m | il,lm,lm | 6.7:6.7 | 15:15 | 2:5:6 | | j | m | jk,lm | 6.7:6.7:6.7 | 15:15:15 | 3:4:5:6 | Scenario: There should be different forward/reverse datasources Given the profile "testbot" And the node map """ a b c d e f g h i """ And the ways | nodes | highway | | abcdefghi | primary | And the contract extra arguments "--segment-speed-file {speeds_file}" And the customize extra arguments "--segment-speed-file {speeds_file}" # Note: 180km/h == 50m/s for speed annotations And the speed file """ 1,2,180,1 2,1,180,1 3,4,180,1 5,6,180,1 8,7,180,1 """ And the query options | annotations | datasources,speed | When I route I should get | from | to | route | a:datasources | a:speed | | a | i | abcdefghi,abcdefghi | 1:0:1:0:1:0:0:0 | 50:10:50:10:50:10:10:10 | | i | a | abcdefghi,abcdefghi | 0:1:0:0:0:0:0:1 | 10:50:10:10:10:10:10:50 | Scenario: datasource name annotations Given the profile "testbot" And the node map """ a b c """ And the ways | nodes | | abc | And the contract extra arguments "--segment-speed-file {speeds_file}" And the customize extra arguments "--segment-speed-file {speeds_file}" And the speed file """ 1,2,180,1 2,1,180,1 """ And the query options | annotations | datasources | # Note - the source names here are specific to how the tests are constructed, # so if this test is moved around (changes line number) or support code # changes how the filenames are generated, this test will need to be updated When I route I should get | from | to | route | am:datasource_names | | a | c | abc,abc | lua profile:63_datasource_name_annotations_speeds | | c | a | abc,abc | lua profile:63_datasource_name_annotations_speeds | Scenario: Speed annotations should handle zero segments Given the profile "testbot" Given the node map """ a -- b --- c | d """ And the ways | nodes | | abc | | cd | # This test relies on the snapping to the EBN cd to introduce a zero segment after the turn And the query options | annotations | speed,distance,duration,nodes | | bearings | 90,5;180,5 | When I route I should get | from | to | route | a:speed | a:distance | a:duration | a:nodes | | a | c | abc,abc | 10:10 | 249.9876189:299.962882 | 25:30 | 1:2:3 |
Save
cmd:
run