Unverified Commit f80a7d69 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

EFA: Show disambiguation page

Closes #249
parent 5988263c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ requires 'Mojolicious::Plugin::OAuth2';
requires 'Mojo::Pg';
requires 'Text::CSV';
requires 'Text::Markdown';
requires 'Travel::Status::DE::EFA', '>= 3.12';
requires 'Travel::Status::DE::EFA', '>= 3.13';
requires 'Travel::Status::MOTIS', '>= 0.01';
requires 'Travel::Status::DE::DBRIS', '>= 0.10';
requires 'Travel::Status::DE::HAFAS', '>= 6.20';
+13 −0
Original line number Diff line number Diff line
@@ -1446,6 +1446,19 @@ sub station {
					status      => 300,
				);
			}
			elsif ( $efa_service
				and $status
				and scalar $status->name_candidates )
			{
				$self->render(
					'disambiguation',
					suggestions => [
						map { { name => $_->name, eva => $_->id_num } }
						  $status->name_candidates
					],
					status => 300,
				);
			}
			elsif ( $hafas_service
				and $status
				and $status->errcode eq 'LOCATION' )