Permalink
Please sign in to comment.
Browse files
Fix a bug in edge interpolation caused by zero-length segments.
- Loading branch information...
Showing
with
5 additions
and 2 deletions.
- +1 −1 demos/cli.rb
- +4 −1 lib/geocoder/us/database.rb
| @@ -1,7 +1,7 @@ | ||
| require 'geocoder/us/database' | ||
| require 'pp' | ||
| -db = Geocoder::US::Database.new("/mnt/geocoder-us/geocoder.db", :debug=>true) | ||
| +db = Geocoder::US::Database.new("/mnt/tiger2010/geocoder.db", :debug=>true) | ||
| result = db.geocode(ARGV[0]) | ||
| pp(result) | ||
| print "#{result[0][:lat]} N, #{-result[0][:lon]} W\n" |
0 comments on commit
e8ada9b