Commit 47b7e1d1 authored by networkException's avatar networkException Committed by derf
Browse files

MOTIS: Update to api changes

parent f4b83a0d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -892,7 +892,7 @@ sub startup {
						# lines between stops. that's not helpful.
						if ( @station_list == @coordinate_list ) {
							$self->log->debug( 'Ignoring polyline for '
								  . $trip->route_name
								  . $trip->display_name
								  . ' as it only consists of straight lines between stops.'
							);
						}
+1 −2
Original line number Diff line number Diff line
@@ -984,8 +984,7 @@ sub station {

				$status = {
					station_eva  => $station,
					station_name =>
					  $status->{results}->[0]->stopover->stop->name,
					station_name => $status->{result}->name,
					related_stations => [],
				};
			}
+1 −1
Original line number Diff line number Diff line
@@ -417,7 +417,7 @@ sub add {
				train_type   => $journey->mode,
				train_no     => q{},
				train_id     => $journey->id,
				train_line   => $journey->route_name,
				train_line   => $journey->display_name,
				sched_departure => $stopover->scheduled_departure,
				real_departure  => $stopover->departure,
				route           => $json->encode( \@route ),
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@
			% }
		</a>
		<span class="dep-line <%= $result->mode %>" style="background-color: #<%= $result->route_color // q{} %>;">
			%= $result->route_name
			%= $result->display_name
		</span>
		<span class="dep-dest">
			% if ($result->is_cancelled) {