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

--json is not supported yet

parent ebac6270
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -270,7 +270,7 @@ if ( my $err = $hafas->errstr ) {
}

if ($json_output) {
	say JSON->new->convert_blessed->encode( [ $hafas->results ] );
	say JSON->new->convert_blessed->encode( [ $hafas->connections ] );
	exit 0;
}

@@ -398,12 +398,6 @@ tbd

Planned departure (or arrival) date.  Default: today.

=item B<--json>

Print result(s) as JSON. This is a dump of internal data structures and not
guaranteed to remain stable between minor versions. Please use the
Travel::Routing::DE::HAFAS(3pm) module if you need a proper API.

=item B<-l>, B<--language> I<language>

Request free-text messages to be provided in I<language>.