I downloaded Delaware, and imported that. My db file comes out to
about 21 meg.
So, when I try to run the metaphones, I get an error about opening the
db...
kevin@kevin-ubuntu-hp:~/devel_git/geocoder$ bin/rebuild_metaphones /
home/kevin/temp/tiger/geocoder.db
/usr/local/lib/site_ruby/1.8/sqlite3/errors.rb:62:in `check': could
not open database: unable to open database file
(SQLite3::CantOpenException)
from /usr/local/lib/site_ruby/1.8/sqlite3/database.rb:79:in
`initialize'
from bin/rebuild_metaphones:7:in `new'
from bin/rebuild_metaphones:7
The file exists, and that's the right path. Any thoughts?
Thanks in advance.
@db = SQLite3::Database.new(ARGV[0])
Now I'm on to the crazy lat/lon values. I searched for something in
Delaware, and it seems to find the record, but then gives really wide
lat/lon values. for example:
p db.geocode("120 East Market Street, Georgetown, DE")
[{:state=>"DE", :fips_county=>"10005", :score=>0.902, :lon=>972.628262, :zip=>"19947", :lat=>754.739879, :city=>"Georgetown", :number=>"120", :street=>"E
Market St", :precision=>:range, :prenum=>""}]
There's another discussion of this elsewhere. Considering it finds
the range/st record, its got to be a relatively simple issue
(hopefully).
-Kevin
If people find things like this and submit patches I will add them to the repo.
-Kate