A HTTP API to find 2 nearest ubike station based on latitude and longitude in request parameters.
/v1/ubike-station/taipei
- Request Method: GET
- Request Parameters:
- lat: latitude of location
- lng: longitude of location
for any location not in Taipie City, please return error code -2.
please handle error/exceptions with following scenarios (and return coressponding error codes)
- 1: all ubike stations are full
- 0: OK
- -1: invalid latitude or longitude
- -2: given location not in Taipei City
- -3: system error
please return empty list as result while returning non-zero code.
please return station with non-zero ubikes (i.e., skip station without ubikes).