aboutsummaryrefslogtreecommitdiffstats
path: root/bin/send-reports
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-11 11:14:20 +0000
committerMatthew Somerville <matthew@fury.ukcod.org.uk>2011-02-11 11:14:20 +0000
commit947f5f9d6c9c74bc5acea7fbc605b653e44f7ce7 (patch)
tree05f70a75d4f473274e897e8951ff71035c1890fb /bin/send-reports
parentc8a9805bcb850cab7bf1c1b8c34ef5c4f22e1b73 (diff)
Helper function for all latlon to OSGB36 calls.
Diffstat (limited to 'bin/send-reports')
-rwxr-xr-xbin/send-reports8
1 files changed, 1 insertions, 7 deletions
diff --git a/bin/send-reports b/bin/send-reports
index 2d5245269..ef3da8c46 100755
--- a/bin/send-reports
+++ b/bin/send-reports
@@ -27,7 +27,6 @@ use mySociety::Config;
use mySociety::DBHandle qw(dbh);
use mySociety::Email;
use mySociety::EmailUtil;
-use mySociety::GeoUtil;
use mySociety::Locale;
use mySociety::MaPit;
use mySociety::Random qw(random_bytes);
@@ -103,12 +102,7 @@ foreach my $row (@$unsent) {
$h{easting_northing} = '';
if ( mySociety::Config::get('COUNTRY') eq 'GB' ) {
- ( $h{easting}, $h{northing} ) =
- mySociety::Locale::in_gb_locale {
- mySociety::GeoUtil::wgs84_to_national_grid(
- $h{latitude}, $h{longitude}, 'G'
- );
- };
+ ( $h{easting}, $h{northing} ) = Utils::convert_latlon_to_en( $h{latitude}, $h{longitude} );
# email templates don't have conditionals so we need to farmat this here
$h{easting_northing} #