Skip to content

x95102003/ubike_server

Repository files navigation

Ubike Backend Server

Description

A HTTP API to find 2 nearest ubike station based on latitude and longitude in request parameters.

Query Format

/v1/ubike-station/taipei

  • Request Method: GET
  • Request Parameters:
    • lat: latitude of location
    • lng: longitude of location

Spec and Error Handling:

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).

About

A backend server hosts a RESTful API to find 2 nearest ubike stations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages