|
|
@ -5,5 +5,5 @@ const non_coarse_layers = ['address', 'street', 'venue']; |
|
|
|
module.exports = (req, res) => { |
|
|
|
module.exports = (req, res) => { |
|
|
|
// returns true if layers is undefined, empty, or contains 'address', 'street', or 'venue'
|
|
|
|
// returns true if layers is undefined, empty, or contains 'address', 'street', or 'venue'
|
|
|
|
return !_.isEmpty(req.clean.layers) && |
|
|
|
return !_.isEmpty(req.clean.layers) && |
|
|
|
_.intersection(req.clean.layers, non_coarse_layers).length === 0; |
|
|
|
_.isEmpty(_.intersection(req.clean.layers, non_coarse_layers)); |
|
|
|
}; |
|
|
|
}; |
|
|
|