Skip to content

Commit

Permalink
skipped google api when seach by lat/lng
Browse files Browse the repository at this point in the history
  • Loading branch information
nchudiwale authored and bryaNgwa committed May 29, 2024
1 parent 1413f9d commit a96618c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/hubzone_util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def search_by_query(term)
def search_by_latlng(loc)
return build_response("INVALID_REQUEST") if loc.blank? || loc.empty?

regex = /\A[-+]?[0-9]*\.?[0-9]+,[-+]?[0-9]*\.?[0-9]+\Z/
return build_response("INVALID_REQUEST") if regex.match(loc).nil?
#regex = /\A[-+]?[0-9]*\.?[0-9]+,[-+]?[0-9]*\.?[0-9]+\Z/
#return build_response("INVALID_REQUEST") if regex.match(loc).nil?

results = default_location_results loc
add_assertions(results)
Expand Down

0 comments on commit a96618c

Please sign in to comment.