diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-02-22 14:25:17 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-02-22 14:25:17 +0000 |
commit | 7da8f20c36726fd205ae48130f07db49fab745e0 (patch) | |
tree | 9573ce8c11fd8a067ad74a1aedb452784654b076 /web/import.cgi | |
parent | 36e118f44144e24e6f1a98ea845b4cc2fed799d8 (diff) | |
parent | a88db262384d3800c36589bb6d1a933b9319e2df (diff) |
Merge branch 'master' into migrate_to_catalyst
Diffstat (limited to 'web/import.cgi')
-rwxr-xr-x | web/import.cgi | 8 |
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?"; }; |