Cheapest fuel along a trip
cheapest_fuel_on_routePlan a drive and locate low-price fuel stations along the route, sorted by price with each station's distance from the start.
Instructions
Plan a drive and find where to fill up: routes from origin to destination, then lists the stations within corridor_km of the route, cheapest first, with each one's km from the start. Ends can be place names ("Madrid", "Valencia"), "lat,lon" text or coordinates. Prices are per litre (per kg for CNG, LNG and H2, per kWh for EV) in local currency; cross-border trips mix currencies, see pumperly://exchange-rates. Uses two of the API's 30 route searches per minute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fuel | Yes | Fuel code. Common ones: B7 = diesel, E5 = petrol 95, E10 = petrol 95 E10, E5_98 = petrol 98, LPG = autogas, EV = charging. The pumperly://fuel-types resource lists all 16 with labels and price units. | |
| limit | No | How many stations to return, 1 to 50. Default 10. | |
| origin | No | Start as a place name ("Madrid") or "lat,lon" text ("40.4168,-3.7038"). Or give origin_lat and origin_lon. | |
| sort_by | No | price (cheapest first, default) or route (in driving order). | price |
| dest_lat | No | End latitude, decimal degrees. | |
| dest_lon | No | End longitude, decimal degrees. | |
| origin_lat | No | Start latitude, decimal degrees. | |
| origin_lon | No | Start longitude, decimal degrees. | |
| corridor_km | No | How far off the route a station may be, in km, 0.5 to 50. Default 2 (a short detour). | |
| destination | No | End as a place name ("Valencia") or "lat,lon" text. Or give dest_lat and dest_lon. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | ||
| stations | Yes | ||
| destination | Yes | ||
| distance_km | Yes | ||
| duration_min | Yes |