How to retrieve facility details
Send an HTTP GET request to the facilities/{Id} resource to retrieve detailed information about one parking facility.
Note
Facility IDs can change without notice. If the ID does not match a facility in the resource, the API returns
404 Not Found.
How to retrieve parking place using HERE Search
To retrieve parking data for a HERE Search result:
- Search for
parkingwith a HERE Search-enabled client, for example around Berlin, Alexanderplatz. - Select a result and copy its place ID, such as
here:pds:place:276u33dc-46d77296c8810578be9fb4fcd3dad740for Am Alexandreplatz. - Use the place ID without the hrn:
276u33dc-46d77296c8810578be9fb4fcd3dad740and pass the remaining facility ID as anidquery parameter tofacilities.
Note
Not every HERE Search result has corresponding rich content in the HERE Off-Street Parking API.
Request example
The following command retrieves the XML representation of the parking facility. Replace {Id} with the facility ID.
curl --request GET \
--header "Authorization: Bearer {YOUR_TOKEN}" \
"https://parking-v2.cc.api.here.com/parking/facilities/{Id}.xml"Note
You can only request information for one parking
Idat a time with this request.
Request parameters
The table below documents both mandatory and optional request parameters supported by this resource.
| Parameter | Required | Description |
|---|---|---|
app_id - Legacy | Yes | A-20 byte Base64 URL-safe encoded string used for the authentication of the client application. You must include an app_id and app_code with every request. For more information on authentication, see the Identity and Access Management Developer Guide. |
app_code - Legacy | Yes | A-20 byte Base64 URL-safe encoded string used for the authentication of the client application. You must include an app_id and app_code with every request. For more information on authentication, see the Identity and Access Management Developer Guide. |
arrival | No | Expected arrival time at the destination, in UTC and formatted according to ISO 8601 (for example, 2015-04-02T15:40:00.000Z).Defaults to the current time if omitted. To get a calculated price for a specific arrival time and duration of stay, you must include both values in the request. |
duration | No | Estimated parking duration in minutes. Minimum value: 1, maximum value: 20160 (two weeks).If no duration is specified, the value defaults to 2 hours ( 120). |
Response
For more information on the responses to these kinds of queries, see Parking Facilities Response.
Updated 21 days ago