Locations API - V2
Get parking availability.
Returns parking availability for up to 100 locations within a specified time window. Use this to check available spots and pricing before creating a booking.
Endpoint
GET - https://api.travisroadservices.com/v2/locations/availability/parking
Copy
Query params
| Parameter | Type | Description |
|---|---|---|
locationIds[]
|
string | Location IDs to check parking availability for. Maximum 100 locations. Multiple values can be passed to broaden the filter. |
from
|
string | Start date and time of the availability window. Format: YYYY-MM-DDTHH:MM:SS+HH:MM. Must be later than now. Minutes must be 00, 15, 30, or 45. Seconds must be 00. |
to
|
string | End date and time of the availability window. Format: YYYY-MM-DDTHH:MM:SS+HH:MM. Must be later than "from", no more than 89 days in the future. Minutes must be 00, 15, 30, or 45. Seconds must be 00. |
includeExternallyManagedAvailability
|
string | A flag to include externally managed availability and prices. Setting this to true will try to fetch real-time availability and prices from a provider. In the response, this will be divided into isPriceIndication and isAvailabilityIndication, indicating whether the fallback (Travis) data was used instead. WARNING: this might slow down the request, as it is dependent on a third party. |
Request body
No request bodyResponse body
Response 200
LocationParkingAvailabilityResource collection
Fields
| Field | Type | Description |
|---|---|---|
locationId
|
integer | Unique identifier of the location. |
isAvailable
|
boolean | Indicates whether the location has parking availability in the requested window. |
spots
|
object | Parking availability spot information for the location. |
total
|
integer | Total number of parking spots at the location. |
available
|
integer | Number of parking spots currently available at the location. |
price
|
object | Price information for the location. Will be null for long-term parking. |
amount
|
number | Price amount in the specified currency. |
currency
|
string | ISO 4217 currency code. |
isPriceIndication
|
boolean | Indicates if the price is an indication rather than the externally managed price. Null by default and will only be filled if query parameter includeExternallyManagedAvailability is set to true. Returns true if the provider price could not be fetched and the fallback was used, false if the external price was used successfully. |
isAvailabilityIndication
|
boolean | Indicates if the availability is an indication rather than the externally managed availability. Null by default and will only be filled if query parameter includeExternallyManagedAvailability is set to true. Returns true if the provider availability could not be fetched and the fallback was used, false if the external availability was used successfully. |
Example