diff options
| author | Alex Schofield <git@ajschof.me> | 2026-04-14 20:57:39 +0100 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2026-04-14 20:57:39 +0100 |
| commit | 4dc7f3441e8e434d38efc0e12d53a61a6dc8f540 (patch) | |
| tree | 8cab51aec8de496550ce9490c0687261ec524a48 /README.md | |
| download | fuelnearme-4dc7f3441e8e434d38efc0e12d53a61a6dc8f540.tar.gz fuelnearme-4dc7f3441e8e434d38efc0e12d53a61a6dc8f540.zip | |
initial commit
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..ecd964a --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ +# FuelNearMe + +FuelNearMe is a simple Python utility that retrieves data from the UK Government’s +solution to centralising fuel station prices across the country. You can read more +about it [here](https://www.fuel-finder.service.gov.uk/). + +It lacks useful features like crowdsourcing data, but it aims to be a quick and simple +way to find the cheapest fuel near you. + +## Usage + +[Geopy](https://github.com/geopy/geopy) is used to get the coordinates to search for +fuel stations in the surrounding area in miles. It is also used to calculate the +geodesic distance between the starting coordinates and the coordinates of a fuel +station - this is an estimate and may not represent the actual distance. + +It's relatively easy to use. For example, you can search for service stations +around LS11 (Leeds), within a 5 mile radius, and to sort the results by distance. + +``` +python3 main.py --address "LS11" --radius 5 --sort "distance" +``` + +### Sort Options + +You can sort by: `distance`, `e10`, `e5`, `b7s` + +If this parameter isn't used, it automatically defaults to e10 (standard petrol). + +## Installation + +For now, create a [virtual environment](https://docs.python.org/3/library/venv.html), +activate it, and then install the dependencies from the `requirements.txt`. + +``` +pip install -r requirements.txt +``` |
