Get stations with more economical prices
GET/company/stations/cheapest
Endpoint that returns gas stations with the lowest prices for a specific fuel type. Ideal for users looking to save on their refueling.
Usage Example:
- Fuel price comparison applications
- Cost-based route optimization systems
- Integration with GPS navigators to suggest economical stations
Use Cases:
- Display the 3 cheapest stations near a location
- Alert when fuel prices drop in an area
- Plan routes considering stations with the best prices
Request
Responses
- 200
List of stations sorted by price (lowest to highest). Includes detailed information for each station:
- Name and location
- Price of selected fuel
- Rating and services
Example response:
{
stations: [
{
id: est456,
name: Gasolinera Económica,
location: {type: Point, coordinates: [-3.70379, 40.41678]},
address: Calle Alcalá 200, Madrid,
province: Madrid,
prices: {diesel: 1.35, gasoline: 1.45},
rating: 3.9,
services: [car wash, shop]
}
]
}