Get all parking lots
GET/truckers/map/parkings/all
Returns all available truck parkings in the system. Requires JWT token authentication and is subject to rate limiting.
Main features:
- Provides the complete list of parkings
- Includes all available data for each parking
- Ideal for comprehensive analysis or integrations with other systems
Usage example:
- Display a complete map of parkings
- Perform statistical analysis
- Synchronize with external systems
Response example:
[
{
id: p6q7r8s9-t0u1-2345,
name: Complete Parking,
location: {
lat: 40.416775,
lng: -3.703790
},
capacity: 60,
price: 13.50,
rating: 4.4,
features: [security, showers, restaurant, wifi]
},
{
id: q7r8s9t0-u1v2-3456,
name: Another Parking,
location: {
lat: 41.385063,
lng: 2.173404
},
capacity: 40,
price: 11.00,
rating: 4.0,
features: [security, restrooms]
}
]
Responses
- 200
- 401
- 429
- 500
All parkings obtained successfully
Unauthorized - Invalid or missing JWT token. Include a valid token in the Authorization header: Bearer {token}
Too many requests - The rate limit has been exceeded.
Wait before making new requests.
Internal Server Error