/Occupancy/CarPark/{ID}
Returns a single bus and/or train stop requested by the ID parameter and sends you updates as they are processed by our engine.
Parameters
Parameter | Example value | Description |
---|---|---|
id | vdl:22 |
Id string of car park as found in GET /Occupancy/CarPark |
Resource URL
/Occupancy/CarPark/{ID}
Format
The response will be formatted as a GeoJSON Feature.
Object properties
Key | Type | Possible values | Description |
---|---|---|---|
id | string |
{id} |
id of car park |
name | string |
{name} |
name of the car park (often a POI next to it or the street name) |
total | integer |
{total} NULL |
total amount of parking spots at this car park, can be null |
free | integer |
- {free} - NULL |
amount of free parking spots at this car park, can be null |
trend | string |
'down' 'stable' 'up' NULL |
trend of parking spots in use (up means fewer free spaces than previously [the timing of this is not known]), can be null |
meta | object |
- object - NULL |
meta data about the carpark (the reason for putting stuff here is to have a global occupancy channel that returns the same values wether it's a car park, a bus or anything else), can be null |
Meta properties (carPark)
All the following values can be null
Key | Type | Possible values | Description |
---|---|---|---|
open | boolean |
- true - false |
id of car park |
elevator | boolean |
- true - false |
wether there is an elevator or not |
link | string |
{link} |
Link to an extensive page about this carpark |
address | object |
object |
|
address.street | string |
{street} |
Address of carpark entry |
address.exit | string |
{exit} |
Address of carpark exit |
phone | integer |
{phone} |
Phone number of carpark |
reserved_for_disabled | integer |
{reserved_for_disabled} |
Amount of car spaces reserved for disabled people |
reserved_for_women | integer |
{reserved_for_women} |
Amount of car spaces reserved for women |
motorbike_lots | integer |
{motorbike_lots} |
Amount of car spaces reserved for motorbikes |
bus_lots | integer |
{bus_lots} |
Amount of car spaces reserved for busses |
bicycle_docks | integer |
{bicycle_docks} |
Amount of car spaces reserved for bicycles |
payment_methods | object |
object |
|
payment_methods.cash | boolean |
{cash} |
Wether you can pay with cash or not |
payment_methods.vpay | boolean |
{vpay} |
Wether you can pay with vpay or not |
payment_methods.visa | boolean |
{visa} |
Wether you can pay with visa or not |
payment_methods.mastercard | boolean |
{mastercard} |
Wether you can pay with mastercard or not |
payment_methods.eurocard | boolean |
{eurocard} |
Wether you can pay with eurocard or not |
payment_methods.amex | boolean |
{amex} |
Wether you can pay with amex or not |
payment_methods.call2park | boolean |
{call2park} |
Wether you can pay with call2park or not |
restrictions | object |
object |
|
restrictions.allowed_gpl | boolean |
- true - false |
Wether you are allowed tp park a car running on gpl or not |
restrictions.allowed_trailor | boolean |
- true - false |
Wether you are allowed tp park a car with a trailor or not |
restrictions.allowed_truck | boolean |
- true - false |
Wether you are allowed tp park a truck or not |
restrictions.max_height | float |
{max_height} |
Maximum vehicle height allowed |
Sample channel & response
/Occupancy/CarPark/vdl:1
{
"type": "update",
"data": [{
"id": "vdl:1",
"data": {
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [6.13016, 49.61308]
},
"properties": {
"id": "vdl:1",
"name": "Theatre",
"total": 335,
"free": 0,
"trend": "down",
"meta": {
"open": true,
"elevator": true,
"link": "http://service.vdl.lu/export/circulation_guidageparking.php?vdl_f=detail&vdl_id=1",
"address": {
"street": "1 rue Beaumont, L-1219 Luxembourg",
"exit": "Côte d'Eich, L-1450 Luxembourg"
},
"phone": 220105,
"reserved_for_disabled": 3,
"reserved_for_women": 0,
"motorbike_lots": 0,
"bus_lots": 0,
"bicycle_docks": 0,
"payment_methods": {
"cash": true,
"vpay": true,
"visa": true,
"mastercard": true,
"eurocard": false,
"amex": false,
"call2park": false
},
"restrictions": {
"allowed_gpl": true,
"allowed_trailor": true,
"allowed_truck": true,
"max_height": 2
}
}
}
}
}]
}
License
Please refer to Occupancy for information about the occupancy data licensing.
Credits
Made by Daniel Duton & Thierry Degeling from ION Network Solutions.
Sponsored by Digital Lëtzebuerg.