aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {