]> git.openstreetmap.org Git - rails.git/commitdiff
Send UK postcode searches to the namefinder as well as npemaps.
authorTom Hughes <tom@compton.nu>
Wed, 23 Jan 2008 00:49:21 +0000 (00:49 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 23 Jan 2008 00:49:21 +0000 (00:49 +0000)
app/controllers/geocoder_controller.rb

index f4093c75ac8ef13bc000e4098fe7a32154191d17..d997be614b7f02ccef03370b8fab68b4ead1bf80 100644 (file)
@@ -14,6 +14,7 @@ class GeocoderController < ApplicationController
       results.push search_us_postcode(query)
     elsif query.match(/(GIR 0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HK-Y][0-9]|[A-HK-Y][0-9]([0-9]|[ABEHMNPRV-Y]))|[0-9][A-HJKS-UW])\s*[0-9][ABD-HJLNP-UW-Z]{2})/i)
       results.push search_uk_postcode(query)
+      results.push search_osm_namefinder(query)
     elsif query.match(/[A-Z]\d[A-Z]\s*\d[A-Z]\d/i)
       results.push search_ca_postcode(query)
     else