Skip to content

html5_reference_CourseLight

EkispertWebService edited this page Mar 22, 2017 · 3 revisions

WebAPI Document - リファレンス

経路探索パーツ

  • 構築
書式 解説
expGuiCourseLight() 経路探索オブジェクトを生成します。
var courseLight = new expGuiCourseLight();
  • 関数
書式 戻り値 解説
search(searchInterface [, listener ]) なし 探索オブジェクトで経路探索を行います
createSearchInterface() object 探索オブジェクトを作成します
getResourceURI() string 駅すぱあと for webのURLを取得します
  • searchInterface
書式 解説
setFrom(string) 出発駅(地)設定
getFrom() from設定値取得
setTo(string) 到着駅(地)設定
getTo() to設定値取得
setVia(string) 経由駅(地)設定
getVia() via設定値取得
setDate(int) 探索日付(YYYYMMDD)設定
getDate() date設定値取得
setTime(int) 探索時刻(HHMM)設定
getTime() time設定値取得
setSearchType(定数:探索種別) 探索種別設定
getSearchType() searchType設定値取得
setPlane(string) 飛行機利用設定
getPlane() plane設定値取得
setShinkansen(string) 新幹線(のぞみ含む)利用設定
getShinkansen() shinkansen設定値取得
setLimitedExpress(string) 特急利用設定
getLimitedExpress() limitedExpress設定値取得
setBus(string) バス利用設定
getBus() bus設定値取得

全パーツ共通の環境設定

  • 環境設定
パラメータ名 引数 説明
apiURL 文字列(URL) APIのURLを指定します
agent 定数:端末種別 指定した端末種別向けのデザインに変更します

※端末種別の指定は指定した端末以外を制限するものではありません。

Clone this wiki locally