aboutsummaryrefslogtreecommitdiffstats
path: root/web/import.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'web/import.cgi')
-rwxr-xr-xweb/import.cgi8
1 files changed, 3 insertions, 5 deletions
diff --git a/web/import.cgi b/web/import.cgi
index e7746f589..ac36b2ee5 100755
--- a/web/import.cgi
+++ b/web/import.cgi
@@ -16,7 +16,7 @@ use mySociety::AuthToken;
use mySociety::Config;
use mySociety::EmailUtil;
use mySociety::EvEl;
-use mySociety::GeoUtil;
+use mySociety::Locale;
sub main {
my $q = shift;
@@ -64,10 +64,8 @@ sub main {
if ( $latitude && mySociety::Config::get('COUNTRY') eq 'GB' ) {
try {
- mySociety::GeoUtil::wgs84_to_national_grid( $latitude, $longitude,
- 'G' );
- }
- catch Error::Simple with {
+ Utils::convert_latlon_to_en( $latitude, $longitude );
+ } catch Error::Simple with {
my $e = shift;
push @errors, "We had a problem with the supplied co-ordinates - outside the UK?";
};