Merge pull request #1211 from Project-OSRM/fix_1173

Fix and close #1173
This commit is contained in:
Dennis Luxen 2014-10-08 11:44:48 +02:00
commit 4e00ebcd74
2 changed files with 23 additions and 1 deletions

View File

@ -176,7 +176,7 @@ EdgeBasedGraphFactory::InsertEdgeBasedNode(const NodeID node_u, const NodeID nod
current_edge_target_coordinate_id,
forward_data.nameID,
forward_geometry[i].second,
reverse_geometry[i].second,
reverse_geometry[geometry_size - 1 - i].second,
forward_dist_prefix_sum[i],
reverse_dist_prefix_sum[i],
m_geometry_compressor.GetPositionForID(e1),

View File

@ -0,0 +1,22 @@
@routing @graph
Feature: Geometry Compression
Background:
Given the profile "testbot"
Scenario: Compressed segments have correct order
Given the node map
| a | | d | | | | h |
| b | | | | e | | f |
| | c | | | | | g |
And the ways
| nodes |
| abcdef |
| fh |
| fg |
When I route I should get
| from | to | route | distance | speed |
| b | e | abcdef | 589m | 35 km/h |
| e | b | abcdef | 589m | 35 km/h |