From a96618c5ba27803a3300f59d3efa4fef729d5336 Mon Sep 17 00:00:00 2001 From: nchudiwale Date: Sun, 7 Apr 2024 15:12:15 -0400 Subject: [PATCH] skipped google api when seach by lat/lng --- app/models/hubzone_util.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/hubzone_util.rb b/app/models/hubzone_util.rb index 13d99f7..fd14c4a 100644 --- a/app/models/hubzone_util.rb +++ b/app/models/hubzone_util.rb @@ -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)