List parking lots
The parking lots API provides access to all active parking lots in the system. This endpoint returns comprehensive information about each parking lot including fees, opening hours, and location data.
Results are cached for 24 hours to optimize performance. The endpoint supports various query parameters to customize the response.
All prices specified in the API are in cents (Swedish ören) and includes VAT. For example, a fee of 2000 corresponds to 20.00 SEK.
List all parking lots
Retrieve a list of all active parking lots in the system. This endpoint returns detailed information about each parking lot including pricing, availability, and location data.
The response includes both active parking lots and recently deleted ones if you specify an updated_after parameter.
Headers
-
- Name
- Accept
- Type
- application/json
- Description
-
Tell the server that you want to receive JSON responses.
Query Parameters
-
- Name
- with
- Type
- string|array
- Description
-
Load additional relationships. Comma-separated string or array.
- Possible values
- fees variable_fees opening_hours locations info_points scheduled_fees parking_permits
-
- Name
- location-format
- Type
- string
- Description
-
Tell the server to return location data in GeoJSON format. By default, location data is returned as an array of coordinates.
- Possible values
- geojson
-
- Name
- updated_after
- Type
- string<date-time>
- Description
-
Only return parking lots updated after this date. Also includes deleted parking lots in response.
Response Attributes
-
- Name
- data
- Type
- array<object>
- Description
-
The list of parking lots. See related resources for more details on the loaded relations.
-
- Name
- id
- Type
- int
- Description
-
The unique identifier of the parking lot.
-
- Name
- zone_number
- Type
- int
- Description
-
The zone number of the parking lot, used for parking enforcement.
-
- Name
- string
- Type
- name
- Description
-
The name of the parking lot.
-
- Name
- type
- Type
- int|null
- Description
-
The type of parking lot. 1=gatumark, 2=tomtmark
-
- Name
- number_of_spaces
- Type
- int
- Description
-
The total number of parking spaces available in the parking lot.
-
- Name
- max_time
- Type
- int
- Description
-
The maximum allowed parking time in minutes. A value of 0 indicates no time limit. Applicable to short time tickets.
-
- Name
- max_fee
- Type
- int
- Description
-
The maximum fee in cents (ören) that can be charged for parking in this lot. A value of 0 indicates no maximum fee. Applicable to short time tickets.
-
- Name
- lockout_time
- Type
- int
- Description
-
The number of minutes a vehicle is locked out from parking after reaching the maximum fee. A value of 0 indicates no lockout.
-
- Name
- anpr
- Type
- boolean
- Description
-
Indicates whether the parking lot uses Automatic Number Plate Recognition (ANPR) technology for enforcement.
-
- Name
- hourly_tickets_allowed
- Type
- boolean
- Description
-
Indicates whether hourly tickets are allowed in this parking lot. If false, only fixed-term tickets, anpr-tickets or permits may be valid.
-
- Name
- deleted
- Type
- array<int>
- Description
-
An array of id's of parking lots that has been deleted since given date-time(updated_after)
Request Example
curl -X GET 'https://falun.parkeraisverige.com/api/v2/parkings?with=fees,locations' \
200 Successful response
{
"data": [
{
"id": 1,
"name": "Central Square Parking",
"zone_number": "A1",
"type": "street",
"number_of_spaces": 50,
"max_time": 120,
"max_fee": 2400,
"lockout_time": null,
"anpr": true,
"hourly_tickets_allowed": true,
"fees": [
{
"price_per_unit": 2000,
"unit": {
"type": 1,
"name": "hour"
},
"start_time": "00:00:00",
"end_time": "23:59:59",
"type_of_day": "weekday",
"round": 0
}
],
"locations": [
{
"area": {
"type": "Polygon",
"coordinates": [
[
[
12.345678,
54.321098
],
[
12.345679,
54.321099
],
[
12.34568,
54.3211
],
[
12.345681,
54.321101
],
[
12.345678,
54.321098
]
]
]
},
"color": "#ff0000"
}
]
}
],
"deleted": []
}