From b0fdfada8f8eb770d41301f988b4c56b62faeb45 Mon Sep 17 00:00:00 2001 From: Marc Tobias Metten Date: Tue, 24 May 2016 16:48:17 +0200 Subject: [PATCH] database contains UK postcodes uppercase --- street2coordinates.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/street2coordinates.rb b/street2coordinates.rb index eefefb1..d8b0d1b 100644 --- a/street2coordinates.rb +++ b/street2coordinates.rb @@ -523,6 +523,7 @@ def geocode_uk_address(address) second_part = post_code_match[3].to_s full_post_code = first_part+second_part + full_post_code.upcase! post_code_select = 'SELECT postcode,country_code,county_code,district_code,ward_code'+ ',ST_Y(location::geometry) as latitude, ST_X(location::geometry) AS longitude'+