Closed fossecode closed 4 years ago
{ "BASE_URL": "coronastatusmt.com", "LANGUAGE": "en-MT", "LOCALE": "en-MT", "COUNTRY_CODE": "mt", "COUNTRY": "Malta", "MAP_CENTER": "14.3582, 35.9401", "MAP_ZOOM": 10, "MAP_MAX_ZOOM": 14, "TWITTER": "coronastatusMT", "ZIP_PATTERN": "[A-Za-z]{2,3}", "ZIP_PLACEHOLDER": "Example: VLT (no numbers)", "ZIP_GUIDE": true, "REDIRECT_TO_GOVERNMENT": false, "PASSCODE_LENGTH": 3, "DB_PATH": "./covid_db" }
Thanks, looks good! So zip code can only be letters?
Thanks, looks good! So zip code can only be letters?
Yes, at least the ones that were provided from the service you linked to. In reality they are three letters (for the locality), then four digits. But due to the small size of Malta, if you include the full post code I think you in many cases could identify the individual houses, which wouldn't preserve the privacy of the users.
So yes, for our purposes I think it makes sense to only use the three initial letters (which match what was provided).
Maltese config:
{ "BASE_URL": "coronastatusmt.com", "LANGUAGE": "en-MT", "LOCALE": "en-MT", "COUNTRY_CODE": "mt", "COUNTRY": "Malta", "MAP_CENTER": "14.3582, 35.9401", "MAP_ZOOM": 10, "MAP_MAX_ZOOM": 14, "TWITTER": "coronastatusMT", "ZIP_PATTERN": "[A-Za-z]{2,3}", "ZIP_PLACEHOLDER": "Example: VLT (no numbers)", "ZIP_GUIDE": true, "REDIRECT_TO_GOVERNMENT": false, "PASSCODE_LENGTH": 3, "DB_PATH": "./covid_db" }
It's probably best if you double check my regex ;)