Hello,
I would like to use osm_tags parameter and be able to define multiple tags but the problem is that photon is not designed to take an array as a parameter or to split string with multiple parameters.
leaflet.photon.js line 38 --> modifying buildQueryString function should do the trick.
Any official solution arround ?
if (params[key] && (typeof(params[key]) == 'string' || typeof(params[key]) == 'number')) {
queryString.push(encodeURIComponent(key) + '=' + params[key]);
} else if (params[key] && params[key].length) {
for (i = 0; i < params[key].length; i++) {
queryString.push(encodeURIComponent(key) + '=' + params[key][i]);
}
}
is the workaround found but could be improved
Sincerely
Hello,
I would like to use osm_tags parameter and be able to define multiple tags but the problem is that photon is not designed to take an array as a parameter or to split string with multiple parameters.
leaflet.photon.js line 38 --> modifying buildQueryString function should do the trick.
Any official solution arround ?
is the workaround found but could be improved
Sincerely