Fix distance calculation consistency. (#6315)
Consolidate great circle distance calculations to use cheap ruler library.
This commit is contained in:
committed by
GitHub
parent
8f0cd5cf7b
commit
aadc088084
@@ -23,13 +23,13 @@ Feature: Projection to nearest point on road
|
||||
|
||||
Scenario: Projection onto way at high latitudes, 1km distance
|
||||
When I route I should get
|
||||
| from | to | route | bearing | distance |
|
||||
| b | a | abc,abc | 0->225,225->0 | 1000m |
|
||||
| b | c | abc,abc | 0->45,45->0 | 1000m +- 3 |
|
||||
| a | d | abc,abc | 0->45,45->0 | 1000m |
|
||||
| d | a | abc,abc | 0->225,225->0 | 1000m |
|
||||
| c | d | abc,abc | 0->225,225->0 | 1000m +- 3 |
|
||||
| d | c | abc,abc | 0->45,45->0 | 1000m +- 3 |
|
||||
| from | to | route | bearing | distance |
|
||||
| b | a | abc,abc | 0->225,225->0 | 1002.9m |
|
||||
| b | c | abc,abc | 0->45,45->0 | 1005m +- 3 |
|
||||
| a | d | abc,abc | 0->45,45->0 | 1002.9m |
|
||||
| d | a | abc,abc | 0->225,225->0 | 1002.9m |
|
||||
| c | d | abc,abc | 0->225,225->0 | 1005m +- 3 |
|
||||
| d | c | abc,abc | 0->45,45->0 | 1005m +- 3 |
|
||||
|
||||
Scenario: Projection onto way at high latitudes, no distance
|
||||
When I route I should get
|
||||
|
||||
Reference in New Issue
Block a user