codeforboston / mattapan-mapping

Mattapan Mapping application. A collaborative between powerfulpathways.org & codeforboston.org . Ideation phase.
https://mattapan-pp.netlify.app/
MIT License
5 stars 16 forks source link

Use Github Action to Fetch BTD_transportation_projects_2021Sept28.geojson #49

Closed thadk closed 2 years ago

thadk commented 2 years ago

Task:

  1. Download and check-in the following file on a regular schedule (cron job).
  2. Then checkout the repository itself using actions/checkout@v2 step.
  3. Download the file. You can use any Action to download the file, but if you have custom code, Javascript or NodeJS is encouraged.
  4. Finally push the downloaded file into the repository with a date suffix as specified below: https://github.com/actions/checkout#Push-a-commit-using-the-built-in-token

You can test the Github Action on your own fork of this repository and submit a PR when you're done.

Original map this file is from: https://boston.maps.arcgis.com/apps/instant/media/index.html?appid=91243c99dc9f41b4853ad2f67cf19aff

Filename and path to save in this repository: /assets/csvFiles/BTD_transportation_projects_2021Sept28.geojson (where the date is ideally dynamic) frequency: once per week URL to download: https://services.arcgis.com/sFnw0xNflSi8J0uh/ArcGIS/rest/services/BTD_PWD_Project_2021_Street_Lines_Public/FeatureServer/0/query?where=0%3D0&objectIds=&time=&geometry=&geometryType=esriGeometryEnvelope&inSR=&spatialRel=esriSpatialRelIntersects&resultType=none&distance=0.0&units=esriSRUnit_Meter&returnGeodetic=false&outFields=*&returnGeometry=true&featureEncoding=esriDefault&multipatchOption=xyFootprint&maxAllowableOffset=&geometryPrecision=&outSR=&datumTransformation=&applyVCSProjection=false&returnIdsOnly=false&returnUniqueIdsOnly=false&returnCountOnly=false&returnExtentOnly=false&returnQueryGeometry=false&returnDistinctValues=false&cacheHint=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&having=&resultOffset=&resultRecordCount=&returnZ=false&returnM=false&returnExceededLimitFeatures=true&quantizationParameters=&sqlFormat=none&f=pgeojson&token=