Find nearby stations by location
GET/company/stations/near
Endpoint that returns service stations within a specified radius around geographic coordinates. Ideal for navigation applications and real-time location systems.
Usage example:
- Navigation applications to find nearby stations
- Emergency systems to locate available stations
- Map integration to display refueling options
Use cases:
- Display stations within a 5km radius around the user
- Alert when running low on fuel and search for nearby options
- Plan stops on long trips based on current location
Request
Responses
- 200
List of stations sorted by distance (from nearest to farthest). Includes detailed information for each station:
- Name and exact location (coordinates)
- Distance from the search point
- Prices and available services
Example response:
{
stations: [
{
id: est789,
name: Central Station,
location: {type: Point, coordinates: [-3.70379, 40.41678]},
address: Gran Vía 1, Madrid,
province: Madrid,
prices: {diesel: 1.40, gasoline: 1.50},
rating: 4.2,
services: [ATM, restaurant],
distance: 0.5
}
]
}