View Source FuelCalculator

Application to calculate fuel required for a trip

installation

Installation

If available in Hex, the package can be installed by adding fuel_calculator to your list of dependencies in mix.exs:

def deps do
  [
    {:fuel_calculator, "~> 0.1.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/fuel_calculator.

usage

Usage

FuelCalculator.calculate(28801, :land, :earth)