ParkWhiz API: Venue Search
Find ParkWhiz venues by name or latitude/longitude pair.
Request
http://api.parkwhiz.com/venue/search/ GET
Parameters
Required parameters are bold.
| Field | Type | Description |
|---|---|---|
| name | string | Name of the venue |
| lat | float | Latitude of search focus |
| lng | float | Longitude of search focus |
| key | string | ParkWhiz public API key |
A latitude/longitude pair can be used in place of name; only one or the other is required.
Example call
http://api.parkwhiz.com/venue/search/?lat=42.082089&lng=-71.2796045&key=62d882d8cfe5680004fa849286b6ce20
Returns (array)
| Field | Type | Description |
|---|---|---|
| name | string | Name of the venue |
| address | string | Street address of the venue |
| city | string | City of the venue |
| state | string | State of the venue |
| zip | string | Zip code of the venue |
| id | integer | ParkWhiz ID of the venue |
| url_fragment | string | URL of venue on ParkWhiz. For example, http://api.parkwhiz.com[url_fragment] |
| distance | integer | Distance in feet from the lat/lng pair queried; null if no lat/lng pair query provided. |
| relevancy | integer | Relevancy score of name search; higher is better. Null if no name query provided. |
Example response
[
{
"name": "Gillette Stadium",
"address": "60 Washington St.",
"city": "Foxboro",
"state": "MA",
"zip": "02035",
"id": 63,
"url_fragment": "/gillette-stadium-parking/",
"distance": 5253,
"relevancy": null
},
...
]