@@ 64-73 (lines=10) @@ | ||
61 | * @return \stdClass |
|
62 | * @throws \RuntimeException |
|
63 | */ |
|
64 | public function getCalendar(DateTime $startDate, DateTime $endDate) |
|
65 | { |
|
66 | $params = [ |
|
67 | 'SelectDateBegin' => $startDate->format('d/m/Y'), |
|
68 | 'SelectDateEnd' => $endDate->format('d/m/Y'), |
|
69 | ]; |
|
70 | return $this->launcher |
|
71 | ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetCalendar.php', $params) |
|
72 | ->resultValues; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * Return a list with line details. |
|
@@ 83-92 (lines=10) @@ | ||
80 | * @return \stdClass |
|
81 | * @throws \RuntimeException |
|
82 | */ |
|
83 | public function getListLines(array $lines, DateTime $date) |
|
84 | { |
|
85 | $params = [ |
|
86 | 'Lines' => join('|', $lines), |
|
87 | 'SelectDate' => $date->format('d/m/Y'), |
|
88 | ]; |
|
89 | return $this->launcher |
|
90 | ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetListLines.php', $params) |
|
91 | ->resultValues; |
|
92 | } |
|
93 | ||
94 | /** |
|
95 | * Return details about all line groups. |
|
@@ 115-124 (lines=10) @@ | ||
112 | * @return \stdClass |
|
113 | * @throws \RuntimeException |
|
114 | */ |
|
115 | public function getTimesLines(array $lines, DateTime $date) |
|
116 | { |
|
117 | $params = [ |
|
118 | 'Lines' => join('|', $lines), |
|
119 | 'SelectDate' => $date->format('d/m/Y'), |
|
120 | ]; |
|
121 | return $this->launcher |
|
122 | ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetTimesLines.php', $params) |
|
123 | ->resultValues; |
|
124 | } |
|
125 | ||
126 | /** |
|
127 | * Return timetable details of one or more lines. |
|
@@ 134-143 (lines=10) @@ | ||
131 | * @return \stdClass |
|
132 | * @throws \RuntimeException |
|
133 | */ |
|
134 | public function getTimeTableLines(array $lines, DateTime $date) |
|
135 | { |
|
136 | $params = [ |
|
137 | 'Lines' => join('|', $lines), |
|
138 | 'SelectDate' => $date->format('d/m/Y'), |
|
139 | ]; |
|
140 | return $this->launcher |
|
141 | ->launchRequest(self::ENDPOINT . '/emt-proxy-server/last/bus/GetTimeTableLines.php', $params) |
|
142 | ->resultValues; |
|
143 | } |
|
144 | ||
145 | /** |
|
146 | * Return details of one or more bus stops including name, served lines |