Skip to content

unnamed ways causes instructions for each node passed  #140

@emiltin

Description

@emiltin

when routing on a way without a name tag, or an empty name, osrm returns an instruction for every node passed, even though it's the same way.

a failing test is in my way_name_testing branch, see #139

  Scenario: Don't create instructions for every node of unnamed ways # features/names.feature:31
    Given the nodes                                                  # features/step_definitions/data.rb:15
      | a | b | c | d |
    And the ways                                                     # features/step_definitions/data.rb:32
      | nodes | highway  | name |
      | abcd  | cycleway |      |
    When I route I should get                                        # features/step_definitions/routing.rb:190
      | from | to | route    |
      | a    | d  | cycleway |   <-- expected
      | a    | d  | "","","" |   <-- got
      Tables were not identical (Cucumber::Ast::Table::Different)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions