summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-12 17:32:22 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-12 17:32:22 +0100
commitde213f09e19af303c97bede3362654a8854aa1ed (patch)
tree93689a320a9b2d180d29417a8034f1c47579c8f6 /lib
parent00c8fa4f0117197e5daed873ed761302474088b8 (diff)
Location: Add TO_JSON function
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Routing/DE/HAFAS/Location.pm8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Travel/Routing/DE/HAFAS/Location.pm b/lib/Travel/Routing/DE/HAFAS/Location.pm
index 27b9dd2..aef6a52 100644
--- a/lib/Travel/Routing/DE/HAFAS/Location.pm
+++ b/lib/Travel/Routing/DE/HAFAS/Location.pm
@@ -30,6 +30,14 @@ sub new {
return $ref;
}
+sub TO_JSON {
+ my ($self) = @_;
+
+ my $ret = { %{$self} };
+
+ return $ret;
+}
+
1;
__END__