Skip to content

Commit

Permalink
feat(frontend): add "lg", "plö" areacodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kkkrist committed Oct 21, 2020
1 parent f312ff4 commit c04e7c3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/frontend/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,10 @@ const App = () => {
value={areacode}
>
<option value='fl'>Flensburg</option>
<option value='sl'>Kreis Schleswig-Flensburg</option>
<option value='lg'>Landkreis Lüneburg</option>
<option value='plö'>Kreis Plön</option>
<option value='rz'>Kreis Herzogtum Lauenburg</option>
<option value='sl'>Kreis Schleswig-Flensburg</option>
</select>
</div>

Expand Down Expand Up @@ -309,8 +311,8 @@ const App = () => {
<p>
*) Die 7-Tage-Inzidenz wird mit einer Einwohnerzahl von{' '}
{formatNum(areacodes[areacode].population)} errechnet (Quelle:{' '}
<a href='https://www.statistik-nord.de/fileadmin/Dokumente/Statistische_Berichte/bevoelkerung/A_I_2_S/A_I_2_vj_194_Zensus_SH.xlsx'>
Statistikamt Nord
<a href={areacodes[areacode].populationSourceUri}>
{areacodes[areacode].populationSourceLabel}
</a>
).
</p>
Expand Down
20 changes: 20 additions & 0 deletions packages/frontend/src/areacodes.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
{
"fl": {
"population": 90164,
"populationSourceLabel": "Statistikamt Nord",
"populationSourceUri": "https://www.statistik-nord.de/",
"sourceLabel": "flensburg.de",
"sourceUri": "https://www.flensburg.de/Startseite/Informationen-zum-Coronavirus.php?object=tx,2306.5&ModID=7&FID=2306.20374.1"
},
"rz": {
"population": 198019,
"populationSourceLabel": "Statistikamt Nord",
"populationSourceUri": "https://www.statistik-nord.de/",
"sourceLabel": "kreis-rz.de",
"sourceUri": "https://www.kreis-rz.de/Corona"
},
"lg": {
"population": 184139,
"populationSourceLabel": "Landesamt für Statistik Niedersachsen",
"populationSourceUri": "https://www.statistik.niedersachsen.de/startseite/",
"sourceLabel": "spezial.lklg.net",
"sourceUri": "https://spezial.lklg.net/?p=64"
},
"plö": {
"population": 128686,
"populationSourceLabel": "Statistikamt Nord",
"populationSourceUri": "https://www.statistik-nord.de/",
"sourceLabel": "corona.rki.de",
"sourceUri": "https://corona.rki.de/"
},
"sl": {
"population": 201156,
"populationSourceLabel": "Statistikamt Nord",
"populationSourceUri": "https://www.statistik-nord.de/",
"sourceLabel": "schleswig-flensburg.de",
"sourceUri": "https://www.schleswig-flensburg.de/Leben-Soziales/Gesundheit/Coronavirus"
}
Expand Down

0 comments on commit c04e7c3

Please sign in to comment.