Get nearby parking to location
GET/truckers/map/parkings/near
Returns truck parking locations within a specific radius around given coordinates. Requires JWT token authentication and is subject to rate limiting.
Main features:
- Searches for parking within a specified radius (in km)
- Allows filtering by exact location
- Ideal for finding rest areas during trips
Example use cases:
- Display nearby parking to the user
- Plan rest stops along a route
- Integration with navigation systems
Example response:
[
{
id: l2m3n4o5-p6q7-8901,
name: Nearby Parking,
location: {
lat: 40.417200,
lng: -3.704200
},
capacity: 40,
price: 12.00,
rating: 4.0,
distance: 1.5
}
]
Request
Responses
- 200
- 400
- 401
- 429
- 500
Parkings obtained successfully
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