aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@dracos.co.uk>2011-02-10 16:07:58 +0000
committerMatthew Somerville <matthew@dracos.co.uk>2011-02-10 16:07:58 +0000
commit0134e484e649b0d39c3bbe97eb963e8844525664 (patch)
treee39a801c4a3b37ce3c3852e28b4eb106a19b324d
parent89d70df4e7c808041e5e2a6e89ae57382541a7fa (diff)
council_check() using lat/lon.
-rw-r--r--perllib/Cobrands/Barnet/Util.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/Cobrands/Barnet/Util.pm b/perllib/Cobrands/Barnet/Util.pm
index ad6fa3919..8ce296aaf 100644
--- a/perllib/Cobrands/Barnet/Util.pm
+++ b/perllib/Cobrands/Barnet/Util.pm
@@ -69,9 +69,9 @@ sub council_check {
my $councils;
if ($params->{all_councils}) {
$councils = $params->{all_councils};
- } elsif ($params->{e}) {
+ } elsif (defined $params->{lat}) {
my $parent_types = $mySociety::VotingArea::council_parent_types;
- $councils = mySociety::MaPit::call('point', "27700/$params->{e},$params->{n}", type => $parent_types);
+ $councils = mySociety::MaPit::call('point', "4326/$params->{lon},$params->{lat}", type => $parent_types);
}
my $council_match = defined $councils->{2489};
if ($council_match) {