Skip to content

Files

Latest commit

07716c6 · Jul 30, 2015

History

History
186 lines (174 loc) · 2.77 KB

File metadata and controls

186 lines (174 loc) · 2.77 KB

Find Landscapes, Buildings or Faculties.

GET /places

Description

Find location of landscapes, buildings or faculties by query parameters.

Request

Headers

Name Required Description
X-NCU-API-TOKEN yes your API token
## Query Parameters
Name Required Description
type yes place type
cname yes place's full Chinese name

cname and type are exclusive

Place Type

type description
WHEELCHAIR_RAMP 無障礙坡道
DISABLED_CAR_PARKING 無障礙汽車位
DISABLED_MOTOR_PARKING 無障礙機車位
EMERGENCY 緊急
AED AED 自動體外心臟電擊去顫器
RESTAURANT 餐廳
SPORT_RECREATION 休閒生活
ADMINISTRATION 行政服務
RESEARCH 教學研究
DORMITORY 宿舍
OTHER 其他單位
ATM 提款機
BUS_STATION 公車站牌
PARKING_LOT 停車場

Example

GET /places?cname=工程五館
GET /places?type=AED

Response

Formats

  • json

Structure

Field Name Type Value Description
chineseName String place's Chinese name
englishName String place's English name
type Enum Place Type
location LatLng
lat latitude
lng longitude

Example

[
	{
		"chineseName" : "AED 自動體外心電擊去顫器",
		"englishName" : "AED, Automated External Defibrillator",
		"type" : "AED",
		"location" : {
			"lat" : 24.968275,
			"lng" : 121.195092
		}
	}, 
	{
		"chineseName" : "AED 自動體外心電擊去顫器",
		"englishName" : "AED, Automated External Defibrillator",
		"type" : "AED",
		"location" : {
			"lat" : 24.966139,
			"lng" : 121.19463
		}
	}
]