Get stations near location
GET/truckers/map/stations/near
Returns gas stations within a specific radius around coordinates. Requires JWT token authentication and is subject to rate limiting.
Main features:
- Searches for stations within a specified radius (in km)
- Allows filtering by exact location
- Ideal for finding refueling options during trips
Usage example:
- Display nearby stations to the user
- Plan stops along a route
- Integration with navigation systems
Response example:
[
{
id: c3d4e5f6-g7h8-9012,
name: Nearby Station,
location: {
lat: 40.417000,
lng: -3.704000
},
services: [petrol, diesel, car wash],
rating: 4.2
}
]
Request
Responses
- 200
- 400
- 401
- 429
- 500
Stations successfully obtained
Invalid coordinates - Latitude/longitude values are out of range (-90 to 90 for latitude, -180 to 180 for longitude)
Unauthorized - Invalid or missing JWT token
Too Many Requests - Rate limit exceeded
Internal Server Error