Get top-rated stations
GET/company/stations/best
This endpoint returns a list of the highest-rated service stations by users, sorted by score from highest to lowest. It is useful for finding stations with a good reputation and service quality.
Example of use:
- Applications that want to show premium options to their users
- Recommendation systems based on ratings
- Filtering stations by quality
Use cases:
- Display the top 5 highest-rated stations on a map
- Integrate into a recommendation system for drivers
- Compare quality between different geographical areas
Request
Responses
- 200
List of stations sorted by rating (highest to lowest). Each station includes:
- Name and location
- Fuel prices
- Rating (1-5 stars)
- Available services
Example response:
{
stations: [
{
id: est123,
name: Premium Station,
location: {type: Point, coordinates: [-3.70379, 40.41678]},
address: Calle Mayor 1, Madrid,
province: Madrid,
prices: {diesel: 1.45, gasoline: 1.55},
rating: 4.8,
services: [car wash, cafeteria, wifi]
}
]
}