Automatically generate list of locations from events.json
Opened this issue · 2 comments
ChristophMuth commented
The events.json file contains all the information needed for the map popup. It needs to be enriched by the geocoordinates using the address data.
Instead of having to manually create the locations array (locations.js) file, we could retrieve the lat/long coordinates from a geocode api like geoapify.
McPringle commented
One nice way would be to add this functionality in the gulpfile.js
. Parse the events.json
and create something like locations.json
. Take a look at generating the feed.xml
in the same file. It parses the events.json
and creates a XML file.