How to search for parking facilities
This example uses prox to find parking facilities near a location.
Scenario
Find parking facilities within 500 m of a point in central Berlin, Germany.
Request summary
- Resource: Facilities
- Parameters:
proxsets the search center's latitude and longitude and the radius in meters. This example uses52.51638,13.38244and a radius of500m. - Response format: Add
.jsonor.xmlto the resource path.
Request example
The following example request searches for facilities and requests a JSON response:
curl --get \
--header "Authorization: Bearer {YOUR_TOKEN}" \
--data-urlencode "prox=52.51638,13.38244,500" \
"https://parking-v2.cc.api.here.com/parking/facilities.json"The same search can request an XML response:
curl --get \
--header "Authorization: Bearer {YOUR_TOKEN}" \
--data-urlencode "prox=52.51638,13.38244,500" \
"https://parking-v2.cc.api.here.com/parking/facilities.xml"
Response example
The response contains a hasMore flag for pagination and a list of matching facilities. Facility records can include IDs, locations, addresses, types, and other fields described in ParkingFacilityType.
The payloads below are illustrative archived examples with timestamps from 2016; they do not represent current parking data.
Example response in JSON format:
{
"hasMore":false,
"facilities":{
"facility":[
{
"open24x7":true,
"facilityDetails":{
"openingHours":{
"openNow": true,
"regularOpeningHours":[
{
"daymask":127,
"period":[
{
"from":"00:00:00",
"to":"24:00:00"
}
]
}
],
"annualOpenings":[
]
},
"driveMaxHeight":1.8,
"facilityType":{
"name":"Parking Facility",
"id":"1"
},
"facilityOperator":"APCOA GmbH",
"facilityLevels":2,
"facilityInfrastructures":{
"name":[
"handicappedparkingspaces",
"securitymanned",
"elevators",
"light"
]
},
"facilityAdministration":{
"name":[
"Monitored",
"Gate"
]
},
"facilityRestrictions":{
},
"paymentMethods":[
{
"name":"Cash - EUR",
"id":"CASH"
}
]
},
"facilityAvailability":{
"spacesTotal":173,
"available":true,
"pricing":{
"price":[
{
"priceGroup":0,
"amount":2.0,
"currency":"EUR",
"unit":30,
"daymask":127,
"minMinutes":0,
"maxMinutes":30,
"textRepresentation": [
{
"text": [
"First 30 minutes",
"Per 30 minutes",
"Every day"
],
"language": "en-US"
}
]
},
{
"priceGroup":1,
"amount":4.0,
"currency":"EUR",
"unit":60,
"daymask":127,
"minMinutes":31,
"maxMinutes":60,
"textRepresentation": [
{
"text": [
"Over 31 minutes",
"Max 1 hour",
"Per hour",
"Every day"
],
"language": "en-US"
}
]
},
{
"priceGroup":2,
"amount":38.0,
"currency":"EUR",
"unit":1440,
"daymask":127,
"minMinutes":61,
"maxMinutes":1440,
"textRepresentation": [
{
"text": [
"Over 1 hour and 1 minute",
"Max 24 hours",
"Per day",
"Every day"
],
"language": "en-US"
}
]
}
]
},
"lastUpdateTimestamp":"2016-06-06T06:50:31.000Z"
},
"address":{
"city":"Berlin",
"country":"DEU",
"region":"Berlin",
"street":"Unter den Linden",
"streetNumber":"77",
"postalCode":"10117"
},
"contacts":{
"phone":[
{
"value":"+4971130570305",
"label":"PHONE"
}
]
},
"distance":166,
"position":{
"latitude":52.51631,
"longitude":13.37999
},
"name":"Hotel Adlon",
"id":"276u33db-e63737ae997c4a1ab5a19c50a63af49e",
"lastUpdateTimestamp":"2016-05-31T01:04:46.015Z",
"timeZone":"Europe/Berlin"
},
{
---removed to shorten document
}
]
}
}
Example response in XML format:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<parking-offstreet:parkingFacilitiesResult xmlns:common="http://www.here.com/2014/02/ACS-Common" xmlns:fuel="http://www.here.com/2014/02/ACS-Fuel"
xmlns:parking-offstreet="http://www.here.com/2014/02/ACS-Parking-Offstreet" xmlns:ev="http://www.here.com/2014/02/ACS-EV"
>
<hasMore>false</hasMore>
<facilities>
<facility id="276u33db-e63737ae997c4a1ab5a19c50a63af49e" lastUpdateTimestamp="2016-05-31T01:04:46.015Z" timeZone="Europe/Berlin">
<address>
<city>Berlin</city>
<country>DEU</country>
<region>Berlin</region>
<street>Unter den Linden</street>
<streetNumber>77</streetNumber>
<postalCode>10117</postalCode>
</address>
<contacts>
<phone>
<value>+4971130570305</value>
<label>PHONE</label>
</phone>
</contacts>
<distance>166</distance>
<position>
<latitude>52.51631</latitude>
<longitude>13.37999</longitude>
</position>
<name>Hotel Adlon</name>
<open24x7>true</open24x7>
<facilityDetails>
<openNow>true</openNow>
<openingHours>
<regularOpeningHours>
<daymask>127</daymask>
<period>
<from>00:00:00</from>
<to>24:00:00</to>
</period>
</regularOpeningHours>
</openingHours>
<driveMaxHeight>1.8</driveMaxHeight>
<facilityType>
<name>Parking Facility</name>
<id>1</id>
</facilityType>
<facilityOperator>APCOA GmbH</facilityOperator>
<facilityLevels>2</facilityLevels>
<facilityInfrastructures>
<name>handicappedparkingspaces</name>
<name>securitymanned</name>
<name>elevators</name>
<name>light</name>
</facilityInfrastructures>
<facilityAdministration>
<name>Monitored</name>
<name>Gate</name>
</facilityAdministration>
<facilityRestrictions />
<paymentMethods>
<name>Cash - EUR</name>
<id>CASH</id>
</paymentMethods>
</facilityDetails>
<facilityAvailability>
<spacesTotal>173</spacesTotal>
<available>true</available>
<pricing>
<price>
<priceGroup>0</priceGroup>
<amount>2.0</amount>
<currency>EUR</currency>
<unit>30</unit>
<daymask>127</daymask>
<minMinutes>0</minMinutes>
<maxMinutes>30</maxMinutes>
<textRepresentation language="en-US">
<text>First 30 minutes</text>
<text>Per 30 minutes</text>
<text>Every day</text>
</textRepresentation>
</price>
<price>
<priceGroup>1</priceGroup>
<amount>4.0</amount>
<currency>EUR</currency>
<unit>60</unit>
<daymask>127</daymask>
<minMinutes>31</minMinutes>
<maxMinutes>60</maxMinutes>
<textRepresentation language="en-US">
<text>Over 31 minutes</text>
<text>Max 1 hour</text>
<text>Per hour</text>
<text>Every day</text>
</textRepresentation>
</price>
<price>
<priceGroup>2</priceGroup>
<amount>38.0</amount>
<currency>EUR</currency>
<unit>1440</unit>
<daymask>127</daymask>
<minMinutes>61</minMinutes>
<maxMinutes>1440</maxMinutes>
<textRepresentation language="en-US">
<text>Over 1 hour and 1 minute</text>
<text>Max 24 hours</text>
<text>Per day</text>
<text>Every day</text>
</textRepresentation>
</price>
</pricing>
<lastUpdateTimestamp>2016-06-06T06:50:31.000Z</lastUpdateTimestamp>
</facilityAvailability>
</facility>
<facility id="276u33db-4b02a2dbe7ef4fdea1d536e7608428c0" pvId="1016951408" lastUpdateTimestamp="2016-05-31T01:14:11.084Z" timeZone="Europe/Berlin">
--- removed to shorten document
</facility>
</facilities>
</parking-offstreet:parkingFacilitiesResult>
For more details about responses to this type of request, see Parking Facilities Response.
Updated 21 days ago