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
46
47
48
49
50
51
52
53
54
55
56
57
|
package FixMyStreet::Cobrand::Hart;
use parent 'FixMyStreet::Cobrand::UKCouncils';
use strict;
use warnings;
sub council_id { return 2333; } # http://mapit.mysociety.org/area/2333.html
sub council_area { return 'Hart'; }
sub council_name { return 'Hart Council'; }
sub council_url { return 'hart'; }
sub is_two_tier { return 1; }
sub disambiguate_location {
my $self = shift;
my $string = shift;
my $town = 'Hart, Hampshire';
return {
%{ $self->SUPER::disambiguate_location() },
town => $town,
# these are taken from mapit http://mapit.mysociety.org/area/2333/geometry -- should be automated?
centre => '51.284839,-0.8974600',
span => '0.180311,0.239375',
bounds => [ 51.186005, -1.002295, 51.366316, -0.762920 ],
};
}
sub example_places {
return ( 'GU51 4JX', 'Primrose Drive' );
}
sub categories_restriction {
my ($self, $rs) = @_;
return $rs->search( { category => { '!=' => 'Graffiti on bridges/subways' } } );
}
sub send_questionnaires {
return 0;
}
sub ask_ever_reported {
return 0;
}
sub contact_email {
my $self = shift;
return join( '@', 'info', 'hart.gov.uk' );
}
sub contact_name { 'Hart District Council (do not reply)'; }
sub default_map_zoom { 3 }
sub reports_per_page { return 20; }
1;
|