Browse Source

changed method name

pull/705/head
Stephen Hess 8 years ago
parent
commit
5dedcf5032
  1. 4
      query/search.js

4
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);
};

Loading…
Cancel
Save