Flat Data #58225
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flat Data | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: '*/30 * * * *' | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
# This step installs Deno, which is a new Javascript runtime that improves on Node. Can be used for an optional postprocessing step | |
- name: Setup deno | |
uses: denoland/setup-deno@main | |
with: | |
deno-version: v1.10.x | |
# Check out the repository so it can read the files inside of it and do other operations | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- name: Fetch entire map as GeoJSON | |
uses: githubocto/flat@v2 | |
with: | |
http_url: https://datascapesg-scrapers.netlify.app/.netlify/functions/togeojson?url=https%3A%2F%2Fwww.google.com%2Fmaps%2Fd%2Fkml%3Fmid%3D1XcpTiJpt_O-Rw6Wu8qrtCm_Ek9VUgIDF%26forcekml%3D1 | |
downloaded_filename: raw-map.geojson | |
postprocess: postprocess.js | |
env: | |
POSTPROCESS_FILENAME: stalls.geojson |