requestCofuGasStations

fun requestCofuGasStations(completion: (Completion<List<CofuGasStation>>) -> Unit)

Returns a list of all Connected Fueling gas stations.

Parameters

completion

Returns a list of CofuGasStations on success or a Throwable on failure.

fun requestCofuGasStations(location: Location, radius: Int, completion: (Completion<List<GasStation>>) -> Unit)

Returns a list of Connected Fueling gas stations within the radius of the specified location.

Parameters

location

The center of the search radius.

radius

The search radius in meters.

completion

Returns a list of GasStations where Connected Fueling is available on success or a Throwable on failure.