Skip to content

Instantly share code, notes, and snippets.

@dnsos
Created February 16, 2023 09:31
Show Gist options
  • Save dnsos/215a69909f7e8611a00609fe5e8c387a to your computer and use it in GitHub Desktop.
Save dnsos/215a69909f7e8611a00609fe5e8c387a to your computer and use it in GitHub Desktop.
List of parks in Berlin that could be filtered and sorted according to a selection of searched tags and other criteria.
const SEARCHED_TAGS = ["Grillplatz", "Wasserspielplatz", "Volleyball"]
const PARKS = [
{
name: "Treptower Park",
tags: ["Restaurants", "Tischtennis", "Blumengarten", "Grillplatz"],
priority: 1
},
{
name: "Tempelhofer Feld",
tags: ["Grillplatz", "Minigolf"],
priority: 2
},
{
name: "Volkspark Friedrichshain",
tags: ["Brunnen", "Wasserspielplatz", "Volleyball", "Grillplatz"],
priority: 1
},
{
name: "Humboldthain",
tags: ["Freibad", "Aussichtsplattform"],
priority: 3
},
{
name: "Volkspark am Weinberg",
tags: ["Wasserspielplatz", "Grillplatz"],
priority: 2
},
{
name: "Tiergarten",
tags: null,
priority: 2
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment