From 091f9fa04b5a44e8ccecc65b0dc22dc0d12a94d2 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 14 Dec 2024 21:00:28 +0100 Subject: Add locationSearch support --- bin/dbris-m | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/dbris-m b/bin/dbris-m index 7a2cf26..253bd19 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -150,6 +150,15 @@ if ( $opt{station} ) { } elsif ( $opt{geoSearch} ) { for my $result ( $status->results ) { - printf( "%8d %s\n", $result->eva, $result->name ); + if ( defined $result->eva ) { + printf( "%8d %s\n", $result->eva, $result->name ); + } + } +} +elsif ( $opt{locationSearch} ) { + for my $result ( $status->results ) { + if ( defined $result->eva ) { + printf( "%8d %s\n", $result->eva, $result->name ); + } } } -- cgit v1.2.3