2012年4月9日 星期一

Taiwan Museum RESTful API Documentation

Dear friends,

We are excited to release our first travel data with the museums information in Taiwan. You can now access the museum data with the following RESTful API :

To list all museum data
Format : JSON
JSON Definition

  • name : Name of the museum
  • Location : The longitude and latitude of the museum
  • id : Random ID
  • desc : Specify the museum is public(公立) or private(私立)
  • county : The county of the museum
  • tel : The phone number of the museum
  • price : Price description
  • addr : The address of the museum

Example Request : GET http://api.accesstaiwan.org/travel/museums

To list museum data with given type
  • GET /travel/museums?type={type}

Example Request : GET http://api.accesstaiwan.org/travel/museums?type=專題博物館

To list museum data with given county
  • GET /travel/museums?county={county}
Example Request : GET http://api.accesstaiwan.org/travel/museums?county=台北市

To list museum data with given description(public museum or private museum)
  • GET /travel/museums?desc={desc}
Example Request : GET http://api.accesstaiwan.org/travel/museums?desc=公立


To list museum data with given lat and lng
  • GET /travel/museums?lat={lat}&lng={lng}
Example Request : GET http://api.accesstaiwan.org/travel/museums?lng=120.686917&lat=24.14877

2 則留言:

  1. Maybe some way to change data language? "國立台灣美術館" is less descriptive than "National Taiwan Museum of Fine Arts" for me.

    回覆刪除
  2. Just uploaded BlackBerry 10 app made using this API: http://appworld.blackberry.com/webstore/content/21794937

    回覆刪除