prkng / api

REST API powering Prkng apps and Web services
MIT License
10 stars 8 forks source link

Additional param to get nearest lot #10

Closed mudar closed 8 years ago

mudar commented 8 years ago

Based on slack discussion:

We could add extra params to GET /v1/lots to return the nearest lot if the current radius returns an empty array. That would probably be a second call by the clients.

Also subscribing @antonino-u

mudar commented 8 years ago

testing ant's notifications

peakwinter commented 8 years ago

The /lots endpoint now supports the nearest parameter (int). If specified and an int >= 1; it will return the nearest X lots to the lat/long IF there are no lots found within the radius.