forked from CodeforLeipzig/wo-ist-markt-scraper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
city_template.njk
41 lines (41 loc) · 1.21 KB
/
city_template.njk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"features": [{% for market in markets %}
{
"geometry": {
"coordinates": [
{{market.coordinates[0]}},
{{market.coordinates[1]}}
],
"type": "Point"
},
"properties": {
"location": "{{market.location}}",
"opening_hours": "{{market.openingHours}}",
"title": "{{market.name}}"
},
"type": "Feature"
}{% if loop.index < loop.length %},{% endif %}{% endfor %},
{
"geometry": {
"coordinates": [
12.35421,
51.343695
],
"type": "Point"
},
"properties": {
"location": "Am Sportforum 2",
"opening_hours": "Sa 07:00-15:30",
"title": "Markt am Sportforum"
},
"type": "Feature"
}
],
"metadata": {
"data_source": {
"title": "Stadt Leipzig",
"url": "https://www.leipzig.de/freizeit-kultur-und-tourismus/einkaufen-und-ausgehen/maerkte/"
}
},
"type": "FeatureCollection"
}