2015-03-07 19:32:13 -05:00
|
|
|
@match @testbot
|
|
|
|
Feature: Basic Map Matching
|
|
|
|
|
|
|
|
Background:
|
|
|
|
Given the profile "testbot"
|
|
|
|
Given a grid size of 10 meters
|
|
|
|
|
2016-03-08 16:02:17 -05:00
|
|
|
Scenario: Testbot - Map matching with outlier that has no candidate
|
|
|
|
Given a grid size of 100 meters
|
|
|
|
Given the node map
|
|
|
|
| a | b | c | d |
|
|
|
|
| | | | |
|
|
|
|
| | | | |
|
|
|
|
| | | | |
|
|
|
|
| | | 1 | |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | oneway |
|
|
|
|
| abcd | no |
|
|
|
|
|
|
|
|
When I match I should get
|
|
|
|
| trace | timestamps | matchings |
|
|
|
|
| ab1d | 0 1 2 3 | abcd |
|
|
|
|
|
2015-03-07 19:32:13 -05:00
|
|
|
Scenario: Testbot - Map matching with trace splitting
|
|
|
|
Given the node map
|
|
|
|
| a | b | c | d |
|
|
|
|
| | | e | |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | oneway |
|
|
|
|
| abcd | no |
|
|
|
|
|
|
|
|
When I match I should get
|
|
|
|
| trace | timestamps | matchings |
|
2015-03-17 19:21:04 -04:00
|
|
|
| abcd | 0 1 62 63 | ab,cd |
|
2015-03-07 19:32:13 -05:00
|
|
|
|
2016-03-07 15:44:32 -05:00
|
|
|
Scenario: Testbot - Map matching with core factor
|
|
|
|
Given the contract extra arguments "--core 0.8"
|
|
|
|
Given the node map
|
|
|
|
| a | b | c | d |
|
|
|
|
| | | e | |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | oneway |
|
|
|
|
| abcd | no |
|
|
|
|
|
|
|
|
When I match I should get
|
|
|
|
| trace | timestamps | matchings |
|
|
|
|
| abcd | 0 1 2 3 | abcd |
|
|
|
|
|
2015-03-07 19:32:13 -05:00
|
|
|
Scenario: Testbot - Map matching with small distortion
|
|
|
|
Given the node map
|
|
|
|
| a | b | c | d | e |
|
|
|
|
| | f | | | |
|
|
|
|
| | | | | |
|
|
|
|
| | | | | |
|
|
|
|
| | | | | |
|
|
|
|
| | h | | | k |
|
|
|
|
|
|
|
|
# The second way does not need to be a oneway
|
|
|
|
# but the grid spacing triggers the uturn
|
|
|
|
# detection on f
|
|
|
|
And the ways
|
|
|
|
| nodes | oneway |
|
|
|
|
| abcde | no |
|
|
|
|
| bfhke | yes |
|
|
|
|
|
|
|
|
When I match I should get
|
|
|
|
| trace | matchings |
|
|
|
|
| afcde | abcde |
|
|
|
|
|
|
|
|
Scenario: Testbot - Map matching with oneways
|
2015-09-01 18:42:13 -04:00
|
|
|
Given a grid size of 10 meters
|
2015-03-07 19:32:13 -05:00
|
|
|
Given the node map
|
|
|
|
| a | b | c | d |
|
|
|
|
| e | f | g | h |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | oneway |
|
|
|
|
| abcd | yes |
|
|
|
|
| hgfe | yes |
|
|
|
|
|
|
|
|
When I match I should get
|
|
|
|
| trace | matchings |
|
|
|
|
| dcba | hgfe |
|
|
|
|
|
2016-04-05 07:27:15 -04:00
|
|
|
Scenario: Testbot - Matching with oneway streets
|
|
|
|
Given a grid size of 10 meters
|
|
|
|
Given the node map
|
|
|
|
| a | b | c | d |
|
|
|
|
| e | f | g | h |
|
|
|
|
|
|
|
|
And the ways
|
|
|
|
| nodes | oneway |
|
|
|
|
| ab | yes |
|
|
|
|
| bc | yes |
|
|
|
|
| cd | yes |
|
|
|
|
| hg | yes |
|
|
|
|
| gf | yes |
|
|
|
|
| fe | yes |
|
|
|
|
|
|
|
|
When I match I should get
|
|
|
|
| trace | matchings |
|
|
|
|
| dcba | hg,gf,fe |
|
|
|
|
| efgh | ab,bc,cd |
|