BustByte / coronastatus

Anonymous crowd sourcing of COVID-19 symptoms all over the world (with public data sets)!
MIT License
174 stars 89 forks source link

specify zip pattern instead of zip length in config #468

Closed fossecode closed 4 years ago

tkrunning commented 4 years ago

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 ;)

fossecode commented 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?

tkrunning commented 4 years ago

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).