<commit_before>@routing @planetary @testbot
Feature: Distance calculation

    Scenario: Approximated Longitudinal distances at equator
        Given the node locations
            | node | lat | lon |
            | a    | 0   | 80  |
            | b    | 0   | 0   |

        And the ways
            | nodes |
            | ab    |

        When I route I should get
            | from | to | route | distance       |
            | a    | b  | ab    | 8905559m ~0.1% |

    Scenario: Approximated Longitudinal distances at latitude 45
        Given the node locations
            | node | lat | lon |
            | c    | 45  | 80  |
            | d    | 45  | 0   |

        And the ways
            | nodes |
            | cd    |

        When I route I should get
            | from | to | route | distance       |
            | c    | d  | cd    | 6028844m ~4.5% |

    Scenario: Approximated Longitudinal distances at latitude 80
        Given the node locations
            | node | lat | lon |
            | c    | 80  | 80  |
            | d    | 80  | 0   |

        And the ways
            | nodes |
            | cd    |

        When I route I should get
            | from | to | route | distance       |
            | c    | d  | cd    | 1431469m ~9.5% |

    Scenario: Approximated Latitudinal distances at longitude 0
        Given the node locations
            | node | lat | lon |
            | a    | 80  | 0   |
            | b    | 0   | 0   |

        And the ways
            | nodes |
            | ab    |

        When I route I should get
            | from | to | route | distance       |
            | a    | b  | ab    | 8905559m ~0.1% |

    Scenario: Approximated Latitudinal distances at longitude 45
        Given the node locations
            | node | lat | lon |
            | a    | 80  | 45  |
            | b    | 0   | 45  |

        And the ways
            | nodes |
            | ab    |

        When I route I should get
            | from | to | route | distance       |
            | a    | b  | ab    | 8905559m ~0.1% |

    Scenario: Approximated Latitudinal distances at longitude 80
        Given the node locations
            | node | lat | lon |
            | a    | 80  | 80  |
            | b    | 0   | 80  |

        And the ways
            | nodes |
            | ab    |

        When I route I should get
            | from | to | route | distance       |
            | a    | b  | ab    | 8905559m ~0.1% |<commit_msg>Add missing arrive instruction.<commit_after>@routing @planetary @testbot
Feature: Distance calculation

    Scenario: Approximated Longitudinal distances at equator
        Given the node locations
            | node | lat | lon |
            | a    | 0   | 80  |
            | b    | 0   | 0   |

        And the ways
            | nodes |
            | ab    |

        When I route I should get
            | from | to | route | distance       |
            | a    | b  | ab,ab | 8905559m ~0.1% |

    Scenario: Approximated Longitudinal distances at latitude 45
        Given the node locations
            | node | lat | lon |
            | c    | 45  | 80  |
            | d    | 45  | 0   |

        And the ways
            | nodes |
            | cd    |

        When I route I should get
            | from | to | route | distance       |
            | c    | d  | cd,cd | 6028844m ~4.5% |

    Scenario: Approximated Longitudinal distances at latitude 80
        Given the node locations
            | node | lat | lon |
            | c    | 80  | 80  |
            | d    | 80  | 0   |

        And the ways
            | nodes |
            | cd    |

        When I route I should get
            | from | to | route | distance       |
            | c    | d  | cd,cd | 1431469m ~9.5% |

    Scenario: Approximated Latitudinal distances at longitude 0
        Given the node locations
            | node | lat | lon |
            | a    | 80  | 0   |
            | b    | 0   | 0   |

        And the ways
            | nodes |
            | ab    |

        When I route I should get
            | from | to | route | distance       |
            | a    | b  | ab,ab | 8905559m ~0.1% |

    Scenario: Approximated Latitudinal distances at longitude 45
        Given the node locations
            | node | lat | lon |
            | a    | 80  | 45  |
            | b    | 0   | 45  |

        And the ways
            | nodes |
            | ab    |

        When I route I should get
            | from | to | route | distance       |
            | a    | b  | ab,ab | 8905559m ~0.1% |

    Scenario: Approximated Latitudinal distances at longitude 80
        Given the node locations
            | node | lat | lon |
            | a    | 80  | 80  |
            | b    | 0   | 80  |

        And the ways
            | nodes |
            | ab    |

        When I route I should get
            | from | to | route | distance       |
            | a    | b  | ab,ab | 8905559m ~0.1% |
{'fraction_non_alphanumeric': 0.07635270541082165, 'fraction_numerical': 0.040480961923847696, 'mean_word_length': 0.9876543209876543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4719610', 'n_tokens_mistral': 1596, 'n_tokens_neox': 1385, 'n_words': 493}