| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package WebService::OverheidIO::BAG; |
|
2
|
|
|
|
|
|
|
our $VERSION = '1.1'; |
|
3
|
|
|
|
|
|
|
# ABSTRACT: Query Overheid.IO/BAG via their API |
|
4
|
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
115931
|
use Moose; |
|
|
2
|
|
|
|
|
744288
|
|
|
|
2
|
|
|
|
|
17
|
|
|
6
|
|
|
|
|
|
|
extends 'WebService::OverheidIO'; |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _build_type { |
|
9
|
1
|
|
|
1
|
|
22
|
return 'bag'; |
|
10
|
|
|
|
|
|
|
} |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub _build_fieldnames { |
|
13
|
1
|
|
|
1
|
|
2
|
my $self = shift; |
|
14
|
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
27
|
return [qw( |
|
16
|
|
|
|
|
|
|
openbareruimtenaam |
|
17
|
|
|
|
|
|
|
huisnummer |
|
18
|
|
|
|
|
|
|
huisnummertoevoeging |
|
19
|
|
|
|
|
|
|
huisletter |
|
20
|
|
|
|
|
|
|
postcode |
|
21
|
|
|
|
|
|
|
woonplaatsnaam |
|
22
|
|
|
|
|
|
|
gemeentenaam |
|
23
|
|
|
|
|
|
|
provincienaam |
|
24
|
|
|
|
|
|
|
locatie |
|
25
|
|
|
|
|
|
|
)]; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub _build_queryfields { |
|
29
|
1
|
|
|
1
|
|
2
|
my $self = shift; |
|
30
|
|
|
|
|
|
|
# Be aware that we return an empty array (ref) due to bugs on the OverheidIO side. |
|
31
|
|
|
|
|
|
|
# If used you will get a 500 server error. |
|
32
|
1
|
|
|
|
|
24
|
return []; |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__END__ |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=pod |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=encoding UTF-8 |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 NAME |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
WebService::OverheidIO::BAG - Query Overheid.IO/BAG via their API |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 VERSION |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
version 1.1 |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
use WebService::OverheidIO::BAG; |
|
54
|
|
|
|
|
|
|
my $overheidio = WebService::OverheidIO::BAG->new( |
|
55
|
|
|
|
|
|
|
key => "your developer key", |
|
56
|
|
|
|
|
|
|
); |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Query the Overheid.io BAG endpoints. BAG stands for Basis Administratie |
|
61
|
|
|
|
|
|
|
Gebouwen. |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
L<WebService::OverheidIO> |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 AUTHOR |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Wesley Schwengle <wesley@mintlab.nl> |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This software is Copyright (c) 2017 by Mintlab BV. |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This is free software, licensed under: |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
The European Union Public License (EUPL) v1.1 |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |