mirror of https://github.com/pelias/api.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
322 B
16 lines
322 B
9 years ago
|
var valid_types = require( '../query/indeces' );
|
||
|
|
||
|
module.exports = function calculate_types(clean_types) {
|
||
|
if (!clean_types) {
|
||
|
return undefined;
|
||
|
}
|
||
|
|
||
|
if (clean_types.from_layers) {
|
||
|
return clean_types.from_layers;
|
||
|
}
|
||
|
|
||
|
if (clean_types.from_address_parser) {
|
||
|
return clean_types.from_address_parser;
|
||
|
}
|
||
|
};
|