Skip to content
Permalink
Browse files

use housenumber in address to comply with geocoding requirements

  • Loading branch information...
gooch committed Sep 12, 2016
1 parent 6ea7b55 commit 5afa13943b3eeae39efb0ceb95975f7dbfa2ac26
Showing with 2 additions and 2 deletions.
  1. +2 −2 scraper.rb
@@ -29,10 +29,10 @@ class BadData < Exception
raise BadData, "Skipping #{title} because it is not a DA"
end

if title =~ /^DA(\d{2})\/(\d{4}) -? (.*) -?\s*Lot (\d+) (.*)/
if title =~ /^DA(\d{2})\/(\d{4}) -? (.*) -?\s*Lot (\d+) \(Hse (\d+)\) (.*)/
# year int description lot-number rest-of-address
record['council_reference'] = "DA#{$1}/#{$2}"
record['address'] = "Lot #{$4} #{$5}, WA"
record['address'] = "#{$5} #{$6}, WA"
record['description'] = $3.gsub(/ -$/, '')
record['info_url'] = row.search('a').attr("href").to_s
record['comment_url'] = "mailto:city@busselton.wa.gov.au?subject=#{record['council_reference']}"

0 comments on commit 5afa139

Please sign in to comment.
You can’t perform that action at this time.