Overview
The API utilizes the blocks api. It simplifies some prequisites and returns the nearest segment at a given point.
Disclaimer
This API aims to give the end user a simple and easy to understand message. We focus on alerting the user when parking is not allowed, not on giving them exhaustive information about the parking rules.
- The user should always check signs and local regulations
- We check for parking availability for the next 60 minutes, but the user’s requirements may be different
- To keep the message concise, we disregard parking rules that involve permits or special events
- Accuracy of this API depends on the last GPS location, which may not reflect the position where the car parked
A typical workflow would be:
- Can I park here API
- Request /caniparkhere/v1 filtered by lat long.
- Receive {segment} data.
- Client – Filter through segment data for info regarding particular segment and segments nearby.
Usage
Can I park here v1 queries can be made as follows:
- Querying a lat long for the nearest segment.
Example request
GET https://api.blue.parkme.com/caniparkhere/v1?latlng=34.04889004,-118.25487
Host: blue.inrix.com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Accept: application/json
Accept-Encoding: gzip, deflate
Authorization: Bearer
INRIXClientAgent:
/caniparkhere/v1
GET Return the parking segment that is closest to the given point.
Parameters
= requiredName | Located In | Type | Description |
---|---|---|---|
latlng | Query | String | Used to select a circular region based on a point and radius. Lat and long in decimal degrees are separated by a comma symbol. For Paris, France: 48.864468,2.3388274 .
|
radius | Query | Double | Optional radius in meters, usually not required. Parking information will be retrieved for a approximately circular region around point, with specified radius. Radius cannot be more than 200 meters. If no segments are found within the radius, an empty response is returned. |
duration | Query | Integer | Parking duration in minutes. If omitted, information is returned about the current parking availability. Duration cannot be more 480 minutes (8 hours). |
locale | String | (to be implemented) An ISO 15897 language descriptor such as `en-US`. We will translate the `rules` and `side` part of the response. # Aim to support French, Spanish, German, maybe others. |