From 5dedcf503252678f413449bd46259e58fc515483 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Tue, 25 Oct 2016 12:37:52 -0400 Subject: [PATCH] changed method name --- query/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/query/search.js b/query/search.js index 4f9b1c73..945276e9 100644 --- a/query/search.js +++ b/query/search.js @@ -120,7 +120,7 @@ function generateQuery( clean ){ } function getQuery(vs) { - if (hasStreet(vs) || isCityStateOnly(vs)) { + if (hasStreet(vs) || isCityStateOnlyWithOptionalCountry(vs)) { return { type: 'fallback', body: fallbackQuery.render(vs) @@ -137,7 +137,7 @@ function hasStreet(vs) { return vs.isset('input:street'); } -function isCityStateOnly(vs) { +function isCityStateOnlyWithOptionalCountry(vs) { var isSet = function(layer) { return vs.isset('input:' + layer); };