Skip to content

matthewgall/fuelfinder-archive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

324 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuel Finder Archive

Scheduled fetches of the latest UK Fuel Finder data, stored in this repository.

Usage

Fetch and write CSV data:

go run .

Output to a different path:

go run . -out path/to/data.csv

Use the long form flag:

go run . -output path/to/data.csv

Write JSON with nested keys:

go run . -format json

Environment variables

  • FUEL_OUT: default output path (overridden by -out)
  • FUEL_FORMAT: default output format (csv or json, overridden by -format)
  • FUEL_PROXY_TEMPLATE: optional fallback proxy template for the fuel URL; use {url} placeholder for a query parameter template, or provide a prefix to append the target URL.

GitHub Action

The workflow runs hourly and on manual dispatch, committing data.csv only when changes are detected.

Data licence

The data is available under the Open Government Licence v3.0. Licence text: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/

Contributors

Languages