Permalink
Browse files

Remove and/at from rest query

  • Loading branch information...
1 parent daeeafb commit ede39ed2baa90d91a92bea47bb12d3a1c151335f Semprebon committed May 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/geocoder/us/rest.rb
View
@@ -8,7 +8,7 @@
set :port, 8081
get '/geocode.?:format?' do
if params[:q]
- results = @@db.geocode params[:q]
+ results = @@db.geocode params[:q].gsub(/\s+(and|at)\s+/i,' ')
@features = []
results.each do |result|
coords = [result.delete(:lon), result.delete(:lat)]

0 comments on commit ede39ed

Please sign in to comment.