summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-12 11:08:47 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-12 11:08:47 +0100
commita6bbc9f5ff0171e0eb73ffe434d009f6e8bf2f11 (patch)
tree7fb363d3fba07bbfa369516f9b15b89bb345abfe /bin
parentebac62705bb1ca1b485881b49ed88d0f619a514e (diff)
--json is not supported yet
Diffstat (limited to 'bin')
-rwxr-xr-xbin/hafas8
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/hafas b/bin/hafas
index 3889433..cc88415 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -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>.