diff --git a/README.rdoc b/README.rdoc index 3c493cc..98ce6b5 100644 --- a/README.rdoc +++ b/README.rdoc @@ -15,11 +15,6 @@ versus cardinal numbers, and more. Geocoder::US 2.0 is shipped with a free US ZIP code data set, compiled from public domain sources. -== "excensus" Branch - -The "excensus" branch is the actively modified branch of Excensus LLC, maintained -by Dan "Ducky" Little (GitHub: theduckylittle, dan.little-at-excensus-dot-com). - == Synopsis >> require 'geocoder/us' diff --git a/lib/geocoder/us/database.rb b/lib/geocoder/us/database.rb index 9cfca23..4239c60 100644 --- a/lib/geocoder/us/database.rb +++ b/lib/geocoder/us/database.rb @@ -267,12 +267,12 @@ def range_ends (edge_ids) FROM range WHERE tlid IN (#{in_list}) GROUP BY tlid, side;" execute(sql, *edge_ids).map {|r| - if r[:flipped] == "0" - r[:flipped] = false - r[:fromhn], r[:tohn] = r[:from0], r[:to0] - else + if r[:flipped].to_i == 1 r[:flipped] = true r[:fromhn], r[:tohn] = r[:from1], r[:to1] + else + r[:flipped] = false + r[:fromhn], r[:tohn] = r[:from0], r[:to0] end [:from0, :to0, :from1, :to1].each {|k| r.delete k} r