var check = require('check-types'); var flipNumberAndStreetCountries = ['DEU', 'FIN', 'SWE', 'NOR', 'DNK', 'ISL']; function setup() { var api = require('pelias-config').generate().api; var settings = api.localization; if (settings && settings.flipNumberAndStreetCountries) { var countries = settings.flipNumberAndStreetCountries; for (var i=0; i 'Grolmanstraße 101' function flipNumberAndStreet(place) { var standard = ( place.address.number + ' ' + place.address.street ), flipped = ( place.address.street + ' ' + place.address.number ); // flip street name and housenumber if( place.name.default === standard ){ place.name.default = flipped; } } module.exports = setup;