Browse Source

commenting out the overkill

pull/169/head
Harish Krishna 9 years ago
parent
commit
bdffe758d4
  1. 6
      sanitiser/_input.js

6
sanitiser/_input.js

@ -48,11 +48,11 @@ function sanitize( req ){
// set target_layer if input suggests no address
if (parsedAddress1.text === parsedAddress1.regions.join(' ')) {
parsedAddress2.target_layer = get_layers(['admin', 'poi']);
} else {
} // else {
// this might be an overkill - you'd want to search for poi and admin
// even if an address is being queried. TBD
parsedAddress2.target_layer = get_layers(['address']);
}
// parsedAddress2.target_layer = get_layers(['address']);
// }
}
var parsedAddress = extend(parsedAddress0, parsedAddress1, parsedAddress2);

Loading…
Cancel
Save