=gtfs_of_oud2= is a suite of tools, written in Perl, to assist the development of GTFS feeds from =.oud2= OuDiaSecond diagram files. Though not supported, =gtfs_of_oud2= could as well be used to process legacy OuDia files.
=gtfs_of_oud2= is a suite of tools, written in Perl, to assist the development of GTFS feeds from =.oud2= OuDiaSecond diagram files. Though not supported, =gtfs_of_oud2= could as well be used to process legacy OuDia files.
* Usage
* Usage
For the time being, the suite only has a single utility, =oud2_parser.pl=. Please note that this does not return anything yet and simply prints the result of the parse to the standard output.
Sample diagram files are provided in the ~tests/dia~ directory.
Sample diagram files are provided in the ~tests/dia~ directory.
** =oud2_parser.pl=
** =oud2_parser.pl=
...
@@ -14,7 +12,6 @@ Parse a diagram file set.
...
@@ -14,7 +12,6 @@ Parse a diagram file set.
#+begin_src bash
#+begin_src bash
oud2_parser.pl
oud2_parser.pl
oud2_parser.pl <filename>.oud2
#+end_src
#+end_src
The files located in =../oud2= i.e. in a folder called =oud2= located in the directory above this =README= will be processed. Note that the following hierarchy must be respected:
The files located in =../oud2= i.e. in a folder called =oud2= located in the directory above this =README= will be processed. Note that the following hierarchy must be respected:
...
@@ -25,9 +22,17 @@ The files located in =../oud2= i.e. in a folder called =oud2= located in the dir
...
@@ -25,9 +22,17 @@ The files located in =../oud2= i.e. in a folder called =oud2= located in the dir
| |-- dia1.oud2
| |-- dia1.oud2
| |-- dia2.oud2
| |-- dia2.oud2
| |-- ...
| |-- ...
|-- bus
| |-- dia1.oud2
| |-- dia2.oud2
| |-- ...
|-- transfer_times
|
#+end_src
#+end_src
For now, =oud2_parser= only outputs information about used diagram files to the standard output.
For now, =oud2_parser= only outputs information to the standard output.
=oud2_parser= also implements a "brute-force version" of the [[https://epubs.siam.org/doi/10.1137/1.9781611972924.13][RAPTOR algorithm]] to get the fastest route between two stations, given a departure time (format is =hhmm=).