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
34
35
36
37
38
39
40
41
42
43
44
45
|
package FixMyStreet::Cobrand::Warwickshire;
use base 'FixMyStreet::Cobrand::UKCouncils';
use strict;
use warnings;
sub council_area_id { return 2243; }
sub council_area { return 'Warwickshire'; }
sub council_name { return 'Warwickshire County Council'; }
sub council_url { return 'warwickshire'; }
sub is_two_tier { return 1; }
sub disambiguate_location {
my $self = shift;
return {
%{ $self->SUPER::disambiguate_location() },
town => 'Warwick',
centre => '52.300638,-1.559546',
span => '0.73185,0.789867',
bounds => [ 51.955394, -1.962007, 52.687244, -1.172140 ],
};
}
sub example_places {
return [ 'CV34 4RL', 'Stratford Rd' ];
}
sub contact_email {
my $self = shift;
return join( '@', 'fmstest', 'warwickshire.gov.uk' );
}
sub contact_name { 'Warwickshire County Council (do not reply)'; }
sub send_questionnaires { 0 }
sub open311_contact_meta_override {
my ($self, $service, $contact, $meta) = @_;
$contact->set_extra_metadata( id_field => 'external_id');
@$meta = grep { $_->{code} ne 'closest_address' } @$meta;
}
1;
|