aboutsummaryrefslogtreecommitdiffstats
path: root/web/import.cgi
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-02-22 14:25:17 +0000
committerEdmund von der Burg <evdb@mysociety.org>2011-02-22 14:25:17 +0000
commit7da8f20c36726fd205ae48130f07db49fab745e0 (patch)
tree9573ce8c11fd8a067ad74a1aedb452784654b076 /web/import.cgi
parent36e118f44144e24e6f1a98ea845b4cc2fed799d8 (diff)
parenta88db262384d3800c36589bb6d1a933b9319e2df (diff)
Merge branch 'master' into migrate_to_catalyst
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?";
};