aboutsummaryrefslogtreecommitdiffstats
path: root/web/index.cgi
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 /web/index.cgi
parentc8a9805bcb850cab7bf1c1b8c34ef5c4f22e1b73 (diff)
Helper function for all latlon to OSGB36 calls.
Diffstat (limited to 'web/index.cgi')
-rwxr-xr-xweb/index.cgi5
1 files changed, 1 insertions, 4 deletions
diff --git a/web/index.cgi b/web/index.cgi
index f5db6e1e7..1a60b05a7 100755
--- a/web/index.cgi
+++ b/web/index.cgi
@@ -24,7 +24,6 @@ use mySociety::AuthToken;
use mySociety::Config;
use mySociety::DBHandle qw(select_all);
use mySociety::EmailUtil;
-use mySociety::GeoUtil;
use mySociety::Locale;
use mySociety::MaPit;
use mySociety::PostcodeUtil;
@@ -282,9 +281,7 @@ sub submit_problem {
# If in UK and we have a lat,lon coocdinate check it is in UK
if ( $input{latitude} && mySociety::Config::get('COUNTRY') eq 'GB' ) {
try {
- mySociety::Locale::in_gb_locale {
- mySociety::GeoUtil::wgs84_to_national_grid($input{latitude}, $input{longitude}, 'G');
- };
+ Utils::convert_latlon_to_en( $input{latitude}, $input{longitude} );
} catch Error::Simple with {
my $e = shift;
push @errors, "We had a problem with the supplied co-ordinates - outside the UK?";