1.3.0 • Published 6 years ago

national-routeing-guide v1.3.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
6 years ago

National Routeing Guide

The project provides an implementation of the National Routeing Guide rules in TypeScript.

Install

This project relies on git submodules to pull in the Open Track National Routeing Guide tests so it is best checked out with the --recursive option:

git clone --recursive git@github.com:assertis/routeing-guide.git
cd routeing-guide/
npm install

Test

npm test

Alternately you can test the BDD scenarios with real data:

npm run test-bdd-real

Documentation

The documentation folder contains a number of useful specifications and logical flow chart in mermaid format.

The National Routeing Guide takes a journey and returns 0...n route codes the journey is valid on.

The rules exist for a number reasons:

  • they determine what is a valid route for the fares. For example, if you have a ticket from Brighton to London, it is not permitted to go via Edinburgh.
  • they preserve (protect) what routes were valid at the time of privatization

High Level Process

High Level Process

Local Journey Rules

Local rules

Long Distance Journey Rules

Long distance rules

Long Distance Journey Rules

Long distance rules

Mapped Journey Rules

Mapped journey rules

1.3.0

6 years ago

1.2.0

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.9

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.4

6 years ago

0.4.3

6 years ago

0.4.2

6 years ago

0.4.1

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago