blob: 1bdf919daa4e404df41cab8e835a43652936747c (
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
34
35
|
package FixMyStreet::Cobrand::Warwickshire;
use base 'FixMyStreet::Cobrand::Whitelabel';
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 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;
|