Find Offers by Location
GET/offers
Finds best parking offer for a location (lat/long), at a given start time and duration.
This API checks both *price* and *availability* information from parking providers. Athentication is needed for rate-limiting.
Request
Query Parameters
Default value: 40.4235049
Geo Latitude where to search for nearby offers
Default value: -3.6894324
Geo Longitude where to search for nearby offers
Default value: now
ISO8601 timestamp when parking starts (Defaults to now
)
Possible values: >= 15
and <= 14400
Default value: 60
Parking duration in minutes (Defaults to 60
, minimum 15
, maximum 14400
)
Return only offers with automated entrance and billing (defaults to null
)
Return only offers that are available for online booking (defaults to null
)
Default value: es
Translates offer's messages (like access) to the selected language in ISO2 code.
Header Parameters
Authentication header obtained from POST /authenticate
that identifies the user making this call.
Authentication header obtained from LMP Team that identifies the client making this call.
Authentication header obtained from LMP Team that identifies the user making this call.
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- Array [
- ]
- ]
The identifier for this offer
The name of the parking
The address of the parking
The 2-letter country code where parking is located
Possible values: >= -90
and <= 90
The geo latitude of the parking
Possible values: >= -180
and <= 180
The geo longitude of the parking
The distance from search coordinates (in metres)
Starting time for this parking offer
The duration of this offer (in minutes)
The expected price for this offer
True if a booking can be made online
True if offer supports automated entry and billing
How to access the parking, any special instructions the user needs to know
Minimum time necessary, in minutes, to cancel this booking (from the start time). If null
or undefined
then the booking cannot be cancelled.
Provider of this offer
Url with the parking details from the provider of the offer
If some parkings we perform a real-time search for free spaces.
rates object[]
List with different prices according to the time of reservation ordered from lowest to highest price
Magnitude of the time unit
The unit of time. It can be day or hour
Amount corresponding to the offer time (including 10% LMP commission)
Price currency
Formatted time and time unit
[
{
"lmppid": "parkweb-17891",
"name": "Parking Biblioteca Nacional",
"address": "Paseo de Recoletos, 20-22, 28001 Madrid",
"country": "ES",
"lat": 40.4235049,
"long": -3.6894324,
"distance": 267,
"start": "2024-06-01T12:00:00.000Z",
"duration": 60,
"expected_price": 2.65,
"available": true,
"automated": true,
"access_msg": "string",
"cancel_mn": 120,
"provider": "Elparking",
"booking_url": "parking.com",
"freeSpots": 133,
"rates": [
{
"time": 1,
"unit": "hour",
"price": 2.65,
"currency": "EUR",
"friendly_name": "1 hour"
}
]
}
]
Bad request (ie. Missing or invalid lat/long coordinates)
Unauthorized (ie. Incorrect or missing x-access-token
)