Skip to content

html5_reference_Landmark

EkispertWebService edited this page Nov 21, 2017 · 9 revisions

WebAPI Document - リファレンス

ランドマークパーツ

  • 構築
書式 解説
expGuiLandmark() ランドマークオブジェクトを生成します。
var landmark = new expGuiLandmark();
  • 関数
書式 戻り値 解説
createLandmark(landmarkInterface [, listener ]) なし ランドマーク情報を作成します
createLandmarkInterface(name) object ランドマーク名を指定し、ランドマーク用地点情報インターフェースを作成します
createLandmarkStationInterface(stationName) object 駅名を指定し、ランドマーク用駅情報インターフェースを作成します
getSerializeData() string ランドマークのシリアライズデータを取得します
setConfigure(name, value) なし 環境設定変更を行います
  • landmarkInterface
書式 解説
setName(string) 名称設定
getName() 名称設定値取得
addStation(stationInterface) 駅情報オブジェクトを追加します
removeStation(stationName) 駅情報オブジェクトを削除します

※地点情報インターフェースはcreateLandmarkInterfaceにて生成してください。

  • landmarkStationInterface
書式 解説
getStation() 駅設定値取得
setTime(int) 所要時間設定
getTime() 所要時間設定値取得
setFare(int) 運賃設定
getFare() 運賃設定値取得
setTraffic(string) 移動手段設定
getTraffic() 移動手段設定値取得
setDistance(int) 距離設定
getDistance() 距離設定値取得
setTeiki1(int) 1ヵ月定期代設定
getTeiki1() 1ヵ月定期代設定値取得
setTeiki3(int) 3ヵ月定期代設定
getTeiki3() 3ヵ月定期代設定値取得
setTeiki6(int) 6ヵ月定期代設定
getTeiki6() 6ヵ月定期代設定値取得

※駅情報インターフェースはcreateLandmarkStationInterfaceにて生成してください。

全パーツ共通の環境設定

  • 環境設定

setConfigure関数で指定できる値です。

パラメータ名 引数 説明
apiURL 文字列(URL) APIのURLを指定します
agent 定数:端末種別 指定した端末種別向けのデザインに変更します ※端末種別の指定は指定した端末以外を制限するものではありません。
ssl true:https通信/false:http通信 SSL暗号化通信のオンオフを切り替えます 例: setConfigure("ssl", true)
key アクセスキー アクセスキーを、URL埋め込みではなくメソッド経由で指定します
Clone this wiki locally