zhongrj
2023-06-27 d74b495736f0c04522ec54274b70fed0ded2878d
public/map/core/bustransfer/TransferParameter.js
New file
@@ -0,0 +1,57 @@
/**
 * TransferParameter
 * @author haoml
 * @date 2015/11/23
 */
define([
   "dojo/_base/declare",
   "dojo/_base/array",
   "dojo/_base/lang",
   "dojo/query",
   "dojo/request",
   "dojo/dom",
   "dojo/dom-style",
   "dojo/dom-class",
   "dojo/dom-attr",
   "dojo/dom-construct",
   "dojo/request/script",
   "dojo/on",
   "dojo/domReady!"
], function (
      declare,
      arrayUtil,
      lang,
      query,
      request,
      dom,
      domStyle,
      domClass,
      domAttr,
      domConstruct,
      script,
      on
  ){
   var TransferParameter = declare("TransferParameter",null,{
      f:"json",
      departure:null,//出发地
      destination:null,//目的地
      prior:"time",//优先考虑的因素,默认时间最短
      exclusive:"mixed",//交通工具类型,默认组合的
      inSR:"",//输入的空间参考,默认值为服务中数据集的坐标系统
      constructor:function(){
      },
      toJSON:function(){
         var json = {
               f:this.f,
               departure:this.departure,
               destination:this.destination,
               prior:this.prior,
               exclusive:this.exclusive,
               inSR:this.inSR
         };
         return json;
      }
   });
   return TransferParameter;
});