Get parkings along a route
GET/truckers/map/parkings/route
Returns truck parkings located near a specified route. Requires JWT token authentication and is subject to rate limiting.
Main features:
- Searches for parkings near the route points
- Ideal for planning rest areas on long trips
- Considers a search radius around the route
Usage example:
- Plan rest stops for a trip
- Show parking options on the current route
- Integration with navigation systems
Response example:
[
{
id: r8s9t0u1-v2w3-4567,
name: Route Parking,
location: {
lat: 40.417600,
lng: -3.704600
},
capacity: 50,
price: 12.50,
rating: 4.2,
distanceFromRoute: 1.5,
features: [security, showers]
}
]
Request
Responses
- 200
- 400
- 401
- 429
- 500
Parkings along the route successfully obtained
Invalid route data - JSON format is incorrect or coordinates are missing
Unauthorized - Invalid or missing JWT token
Too many requests - The rate limit has been exceeded
Internal Server Error