blob: 170522c05e2fdd28171ee67f9f8698cbe501cac2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package Travel::Routing::DE::HAFAS::Location;
use strict;
use warnings;
use 5.014;
use parent 'Class::Accessor';
our $VERSION = '0.00';
Travel::Routing::DE::HAFAS::Location->mk_ro_accessors(
qw(lid type name eva state coordinate));
sub new {
my ( $obj, %opt ) = @_;
my $loc = $opt{loc};
my $ref = {
lid => $loc->{lid},
type => $loc->{type},
name => $loc->{name},
eva => 0 + $loc->{extId},
state => $loc->{state},
coordinate => $loc->{crd}
};
bless( $ref, $obj );
return $ref;
}
1;
|