line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
7
|
use Opendata::GTFS::Standard; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
13
|
|
2
|
2
|
|
|
2
|
|
2420
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
53
|
|
3
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
84
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
# PODNAME: Opendata::GTFS::Type::Frequency |
6
|
|
|
|
|
|
|
# ABSTRACT: Frequency |
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
2837
|
class Opendata::GTFS::Type::Frequency using Moose { |
|
2
|
|
|
2
|
|
46
|
|
|
2
|
|
|
2
|
|
11
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
188
|
|
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
532
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
113
|
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
160
|
|
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
171
|
|
|
2
|
|
|
|
|
63
|
|
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
13
|
|
|
2
|
|
|
|
|
6041
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
9778
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
16
|
|
|
2
|
|
|
|
|
6016
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
18
|
|
|
2
|
|
|
|
|
152
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
392
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
1868
|
|
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
11
|
|
|
2
|
|
|
|
|
8750
|
|
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
72
|
|
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
72
|
|
|
2
|
|
|
|
|
9
|
|
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
88
|
|
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
282
|
|
|
2
|
|
|
|
|
17
|
|
|
2
|
|
|
|
|
27456
|
|
|
2
|
|
|
|
|
34
|
|
|
2
|
|
|
|
|
3619
|
|
9
|
|
|
|
|
|
|
|
10
|
2
|
|
|
|
|
22
|
our $VERSION = '0.0104'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
|
|
5
|
my @columns = qw/ |
13
|
|
|
|
|
|
|
1 trip_id |
14
|
|
|
|
|
|
|
1 start_time |
15
|
|
|
|
|
|
|
1 end_time |
16
|
|
|
|
|
|
|
1 headway_secs |
17
|
|
|
|
|
|
|
0 exact_times |
18
|
|
|
|
|
|
|
/; |
19
|
|
|
|
|
|
|
|
20
|
2
|
|
|
|
|
9
|
for (my $i = 0; $i < $#columns; $i += 2) { |
21
|
10
|
|
|
|
|
14001
|
my $required = $columns[$i]; |
22
|
10
|
|
|
|
|
15
|
my $column = $columns[$i + 1]; |
23
|
|
|
|
|
|
|
|
24
|
10
|
100
|
|
|
|
37
|
has $column => ( |
25
|
|
|
|
|
|
|
is => 'ro', |
26
|
|
|
|
|
|
|
isa => ($required ? Str : Maybe[Str]), |
27
|
|
|
|
|
|
|
); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=pod |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=encoding utf-8 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Opendata::GTFS::Type::Frequency - Frequency |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 VERSION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Version 0.0104, released 2015-02-22. |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 end_time |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=begin HTML |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
<table cellpadding="0" cellspacing="0"> |
57
|
|
|
|
|
|
|
<tr><td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;"><a href="https://metacpan.org/pod/Types::Standard#Str">Str</a> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
</td> |
60
|
|
|
|
|
|
|
<td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;">optional</td> |
61
|
|
|
|
|
|
|
<td style="padding-left: 6px; padding-right: 6px; white-space: nowrap;">read-only</td></tr> |
62
|
|
|
|
|
|
|
</table> |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
<p></p> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=end HTML |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 exact_times |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=begin HTML |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
<table cellpadding="0" cellspacing="0"> |
73
|
|
|
|
|
|
|
<tr><td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;"><a href="https://metacpan.org/pod/Types::Standard#Maybe">Maybe</a> [ <a href="https://metacpan.org/pod/Types::Standard#Str">Str</a> ]</td> |
74
|
|
|
|
|
|
|
<td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;">optional</td> |
75
|
|
|
|
|
|
|
<td style="padding-left: 6px; padding-right: 6px; white-space: nowrap;">read-only</td></tr> |
76
|
|
|
|
|
|
|
</table> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
<p></p> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=end HTML |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head2 headway_secs |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=begin HTML |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
<table cellpadding="0" cellspacing="0"> |
87
|
|
|
|
|
|
|
<tr><td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;"><a href="https://metacpan.org/pod/Types::Standard#Str">Str</a> |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
</td> |
90
|
|
|
|
|
|
|
<td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;">optional</td> |
91
|
|
|
|
|
|
|
<td style="padding-left: 6px; padding-right: 6px; white-space: nowrap;">read-only</td></tr> |
92
|
|
|
|
|
|
|
</table> |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
<p></p> |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=end HTML |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 start_time |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=begin HTML |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
<table cellpadding="0" cellspacing="0"> |
103
|
|
|
|
|
|
|
<tr><td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;"><a href="https://metacpan.org/pod/Types::Standard#Str">Str</a> |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
</td> |
106
|
|
|
|
|
|
|
<td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;">optional</td> |
107
|
|
|
|
|
|
|
<td style="padding-left: 6px; padding-right: 6px; white-space: nowrap;">read-only</td></tr> |
108
|
|
|
|
|
|
|
</table> |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
<p></p> |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=end HTML |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head2 trip_id |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=begin HTML |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
<table cellpadding="0" cellspacing="0"> |
119
|
|
|
|
|
|
|
<tr><td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;"><a href="https://metacpan.org/pod/Types::Standard#Str">Str</a> |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
</td> |
122
|
|
|
|
|
|
|
<td style="padding-right: 6px; padding-left: 6px; border-right: 1px solid #b8b8b8; white-space: nowrap;">optional</td> |
123
|
|
|
|
|
|
|
<td style="padding-left: 6px; padding-right: 6px; white-space: nowrap;">read-only</td></tr> |
124
|
|
|
|
|
|
|
</table> |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
<p></p> |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=end HTML |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head1 SOURCE |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
L<https://github.com/Csson/p5-Opendata-GTFS-Feed> |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=head1 HOMEPAGE |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
L<https://metacpan.org/release/Opendata-GTFS-Feed> |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=head1 AUTHOR |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Erik Carlsson <info@code301.com> |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Erik Carlsson <info@code301.com>. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
147
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=cut |