Get Started

This section outlines how to get started quickly using the On-Street Parking API on the HERE developer portal.

  1. Get a HERE Account
  2. Register your App
  3. Get an API Key
  4. Send a Request

Note

This section provides information on the minimum setup required to begin quickly using the On-Street Parking API.

For more detailed information on HERE account setup, app registration, and authentication, see the Identity & Access Management Developer Guide.

Get a HERE Account

If you are an individual developer who has signed up for one of the plans listed on our Developer plans page on developer.here.com., you received a HERE account ID when you signed up. You can use your HERE account to log in to developer.here.com. to create applications. Applications (uniquely identified by an app ID) enable development with HERE products and services.

Register your App

To register your app, follow these steps:

  1. Sign in to developer.here.com..
  2. Click your name, select Projects, and then choose your project from the list. Your project details and available application credentials are then displayed.
  3. Select JavaScript or REST and click Generate App. When your application is created, its app ID is displayed.

Get an API key

To get an API key, follow these steps:

  1. Sign in to developer.here.com..
  2. Click your name, select Projects, and then choose your project from the list. Your project details and available application credentials are then displayed.
  3. Click Create API key to generate a maximum of two API keys for your application. The API key is created and displayed.

Send a Request

The example below describes how to get parking information for a particular area in Barcelona, Spain.

Include a bearer token in your HTTP Header.

Authorization: Bearer <token>

Send a GET request as follows:

https://osp.cc.api.here.com/parking/segments
    ?bbox=41.389405513925354,2.127549994463742,41.38042236108416,2.139522979169079

The bbox parameter specifies a bounding box for a search area.

The response to the request above delivers the following high-level elements:

  • The parkingSegments array contains all parking segments in the bounding box specified in your request, for which parking availability or parking rules information is available. For each segment, the full on-street parking information is given, including parking restrictions. For more information, see Parking Segments.
{  
   "parkingSegments":[  
      {  
         "id":"192191",
         "capacity":8,
         "paymentInfo":{  
            "paymentType":[  
               "ON_FOOT"
            ],
            "paymentMethod":{  
               "CARDS":[  
                  "UNKNOWN"
               ],
               "CASH":[  
                  "COINS"
               ],
               "ELECTRONIC_PAYMENT":[  
                  "MOBILE"
               ]
            }
         },
         "priceSchema":{  
            "currencyCode":"EUR",
            "prices":[  
               {  
                  "maxStay":"PT2M",
                  "times":[  
                     {  
                        "days":31,
                        "timeRange":{  
                           "startTimeOfDay":"08:00",
                           "endTimeOfDay":"20:00"
                        }
                     }
                  ],
                  "cost":[  
                     {  
                        "type":"NONE",
                        "amount":2.75,
                        "duration":"PT1H"
                     }
                  ]
               }
            ]
         },
         "address":{  
            "street":"Carrer de Galileu, 314",
            "city":"Barcelona",
            "postalCode":"08028",
            "countryCode":"ESP"
         },
         "tpegOpenLR":{  
            "binary":"CCgBEAAkIwGEFR1t4AAJBQQFA/EACgQDBWAA/9gAUQAJBQQFA3EAMBcL",
            "sideOfRoad":"RIGHT"
         },
         "availability":{  
            "availableSpots":3,
            "trend":"STATIC",
            "lastUpdatedTimestamp":"2019-01-21T09:40:03Z"
         }
      },
      {  
         "id":"6205098",
         "capacity":8,
         "priceSchema":{  
            "currencyCode":"EUR",
            "prices":[  
               {  
                  "times":[  
                     {  
                        "days":127,
                        "timeRange":{  
                           "startTimeOfDay":"00:00",
                           "endTimeOfDay":"00:00"
                        }
                     }
                  ],
                  "cost":[  
                     {  
                        "type":"NONE",
                        "amount":0,
                        "duration":"PT1H"
                     }
                  ]
               }
            ]
         },
         "address":{  
            "street":"Calle de Joan Güell",
            "city":"Barcelona",
            "postalCode":"08028",
            "countryCode":"ESP"
         },
         "features":[  
            "MOTORCYCLE"
         ],
         "parkingRestrictions":[  
            {  
               "type":"NO_PARKING",
               "exceptions":[  
                  {  
                     "type":"MOTORCYCLES_ONLY"
                  }
               ]
            }
         ],
         "tpegOpenLR":{  
            "binary":"CCkBEAAlJAGEFB1tZgAJBQQFA3IACgUEBYEjAAA9/3QACQUEBQPzADBmLg==",
            "sideOfRoad":"LEFT"
         },
         "probability":[  
            {  
               "probability":31
            }
         ]
      }
   ]
}

results matching ""

    No results matching ""