Commit 150b951f authored by Gérald Niel's avatar Gérald Niel
Browse files

Nouvelle-Calédonie (suite…)

parent da096246
......@@ -372,7 +372,7 @@ window.addEventListener('load', async function () {
html = r[0] ? (r[0].html || '') : '';
if ( address != undefined && address.country == 'France' ) {
let cp = address.state == 'Corse' ? '20' : (address.postcode ? address.postcode.substring(0, 2) : null);
if (cp == '97') cp = address.postcode.substring(0, 3);
if (cp == '97' || cp == '98') cp = address.postcode.substring(0, 3);
let departementRef = cp == '20' ? (address.county == 'Corse-du-Sud' ? '2A' : '2B') : cp;
if (!departementRef && address.region == 'Nouvelle-Calédonie') departementRef = '988';
createPoint(lat, lng, html, departementRef);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment