diff options
author | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-11 11:14:20 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@fury.ukcod.org.uk> | 2011-02-11 11:14:20 +0000 |
commit | 947f5f9d6c9c74bc5acea7fbc605b653e44f7ce7 (patch) | |
tree | 05f70a75d4f473274e897e8951ff71035c1890fb /web/import.cgi | |
parent | c8a9805bcb850cab7bf1c1b8c34ef5c4f22e1b73 (diff) |
Helper function for all latlon to OSGB36 calls.
Diffstat (limited to 'web/import.cgi')
-rwxr-xr-x | web/import.cgi | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/web/import.cgi b/web/import.cgi index 919f7a653..ac36b2ee5 100755 --- a/web/import.cgi +++ b/web/import.cgi @@ -16,7 +16,6 @@ use mySociety::AuthToken; use mySociety::Config; use mySociety::EmailUtil; use mySociety::EvEl; -use mySociety::GeoUtil; use mySociety::Locale; sub main { @@ -65,11 +64,8 @@ sub main { if ( $latitude && mySociety::Config::get('COUNTRY') eq 'GB' ) { try { - mySociety::Locale::in_gb_locale { - 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?"; }; |