Package com.lbslocal.cc.objects.v3.proximity

Examples of com.lbslocal.cc.objects.v3.proximity.ProximityInfo


      Validation("getRoute", idLicenca, rs, ro);

      RouteProximityOptions routeOptions = new RouteProximityOptions();

      routeOptions.setLanguage(ro.getLanguage());
      routeOptions.setRouteDetails(new RouteDetails());
      routeOptions.getRouteDetails().setDescriptionType(ro.getRouteDetails().getDescriptionType());
      routeOptions.getRouteDetails().setOptimizeRoute(ro.getRouteDetails().isOptimizeRoute());
      routeOptions.getRouteDetails().setPoiRoute(ro.getRouteDetails().getPoiRoute());
      routeOptions.getRouteDetails().setRouteType(ro.getRouteDetails().getRouteType());
View Full Code Here


    try {
      Validation("getRouteSummary", idLicenca, rs, ro);
      RouteProximityOptions routeOptions = new RouteProximityOptions();

      routeOptions.setLanguage(ro.getLanguage());
      routeOptions.setRouteDetails(new RouteDetails());
      routeOptions.getRouteDetails().setDescriptionType(ro.getRouteDetails().getDescriptionType());
      routeOptions.getRouteDetails().setOptimizeRoute(ro.getRouteDetails().isOptimizeRoute());
      routeOptions.getRouteDetails().setPoiRoute(ro.getRouteDetails().getPoiRoute());
      routeOptions.getRouteDetails().setRouteType(ro.getRouteDetails().getRouteType());
View Full Code Here

    try {
      Validation("getRouteDescription", idLicenca, rs, ro);
      RouteProximityOptions routeOptions = new RouteProximityOptions();

      routeOptions.setLanguage(ro.getLanguage());
      routeOptions.setRouteDetails(new RouteDetails());
      routeOptions.getRouteDetails().setDescriptionType(ro.getRouteDetails().getDescriptionType());
      routeOptions.getRouteDetails().setOptimizeRoute(ro.getRouteDetails().isOptimizeRoute());
      routeOptions.getRouteDetails().setPoiRoute(ro.getRouteDetails().getPoiRoute());
      routeOptions.getRouteDetails().setRouteType(ro.getRouteDetails().getRouteType());
View Full Code Here

    try {
      Validation("getRouteTotals", idLicenca, rs, ro);
      RouteProximityOptions routeOptions = new RouteProximityOptions();

      routeOptions.setLanguage(ro.getLanguage());
      routeOptions.setRouteDetails(new RouteDetails());
      routeOptions.getRouteDetails().setDescriptionType(ro.getRouteDetails().getDescriptionType());
      routeOptions.getRouteDetails().setOptimizeRoute(ro.getRouteDetails().isOptimizeRoute());
      routeOptions.getRouteDetails().setPoiRoute(ro.getRouteDetails().getPoiRoute());
      routeOptions.getRouteDetails().setRouteType(ro.getRouteDetails().getRouteType());
View Full Code Here

      }

      RouteProximityOptions routeOptions = new RouteProximityOptions();

      routeOptions.setLanguage(ro.getLanguage());
      routeOptions.setRouteDetails(new RouteDetails());
      routeOptions.getRouteDetails().setDescriptionType(ro.getRouteDetails().getDescriptionType());
      routeOptions.getRouteDetails().setOptimizeRoute(ro.getRouteDetails().isOptimizeRoute());
      routeOptions.getRouteDetails().setPoiRoute(ro.getRouteDetails().getPoiRoute());
      routeOptions.getRouteDetails().setRouteType(ro.getRouteDetails().getRouteType());
View Full Code Here

    try {
      Validation("getRouteWithMap", idLicenca, rs, ro);
      RouteProximityOptions routeOptions = new RouteProximityOptions();

      routeOptions.setLanguage(ro.getLanguage());
      routeOptions.setRouteDetails(new RouteDetails());
      routeOptions.getRouteDetails().setDescriptionType(ro.getRouteDetails().getDescriptionType());
      routeOptions.getRouteDetails().setOptimizeRoute(ro.getRouteDetails().isOptimizeRoute());
      routeOptions.getRouteDetails().setPoiRoute(ro.getRouteDetails().getPoiRoute());
      routeOptions.getRouteDetails().setRouteType(ro.getRouteDetails().getRouteType());
View Full Code Here

      if (ph.fields[0].equals("getRoute"))
      {
       
        String fullCoords = cr.getFieldFromXML(ph.XMLFile, "coords");
       
        RouteInfo ri = new RouteInfo();
       
        ObjectsHelper[] routeStopDependencyObjects = new ObjectsHelper[3];
       
        routeStopDependencyObjects[0] = cr.new ObjectsHelper();
        routeStopDependencyObjects[0].object = new Point();
        routeStopDependencyObjects[0].alias = "point";
       
        routeStopDependencyObjects[1] = cr.new ObjectsHelper();
        routeStopDependencyObjects[1].object = new RouteStop();
        routeStopDependencyObjects[1].alias = "RouteStop";
       
        routeStopDependencyObjects[2] = cr.new ObjectsHelper();
        routeStopDependencyObjects[2].object = new RouteStop[0];
        routeStopDependencyObjects[2].alias = "rs";
       
        ObjectsHelper[] routeOptionsDependencyObjects = new ObjectsHelper[7];
       
        routeOptionsDependencyObjects[0] = cr.new ObjectsHelper();
        routeOptionsDependencyObjects[0].object = new RouteDetails();
        routeOptionsDependencyObjects[0].alias = "routeDetails";
       
        routeOptionsDependencyObjects[1] = cr.new ObjectsHelper();
        routeOptionsDependencyObjects[1].object = new Vehicle();
        routeOptionsDependencyObjects[1].alias = "vehicle";
       
        routeOptionsDependencyObjects[2] = cr.new ObjectsHelper();
        routeOptionsDependencyObjects[2].object = new RouteLine[0];
        routeOptionsDependencyObjects[2].alias = "routeLine";
       
        routeOptionsDependencyObjects[3] = cr.new ObjectsHelper();
        routeOptionsDependencyObjects[3].object = new RouteLine();
        routeOptionsDependencyObjects[3].alias = "RouteLine";
       
        routeOptionsDependencyObjects[4] = cr.new ObjectsHelper();
        routeOptionsDependencyObjects[4].object = new Point[0];
        routeOptionsDependencyObjects[4].alias = "barrierPoints";
       
        routeOptionsDependencyObjects[5] = cr.new ObjectsHelper();
        routeOptionsDependencyObjects[5].object = new String[0];
        routeOptionsDependencyObjects[5].alias = "barriersList";
       
        routeOptionsDependencyObjects[6] = cr.new ObjectsHelper();
        routeOptionsDependencyObjects[6].object = new String[0];
        routeOptionsDependencyObjects[6].alias = "poiRoute";
       
        RouteStop[] rs = (RouteStop[]) cr.getObjectFromXML(ph.XMLFile, "rs", RouteStop.class, routeStopDependencyObjects);
        RouteOptions ro = (RouteOptions) cr.getObjectFromXML(ph.XMLFile, "ro", RouteOptions.class, routeOptionsDependencyObjects);
       
        try
        {
          ri = cRoute.getRoute(rs, ro, id_licenca);
          if (fullCoords.equals("true")){
            ri.setCoords(cRoute.getRouteFullCoords(ri.getRouteId()));
          }
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
       
        response.setContentType("text/xml");
        response.setCharacterEncoding("UTF-8");
       
        ObjectsHelper[] dependencyObjects = new ObjectsHelper[6];
       
        dependencyObjects[0] = cr.new ObjectsHelper();
        dependencyObjects[0].object = new MapInfo();
        dependencyObjects[0].alias = "MapInfo";
       
        dependencyObjects[1] = cr.new ObjectsHelper();
        dependencyObjects[1].object = new SegmentDescription();
        dependencyObjects[1].alias = "SegmentDescription";
       
        dependencyObjects[2] = cr.new ObjectsHelper();
        dependencyObjects[2].object = new RouteTotals();
        dependencyObjects[2].alias = "routeTotals";
       
        dependencyObjects[3] = cr.new ObjectsHelper();
        dependencyObjects[3].object = new RouteSummary();
        dependencyObjects[3].alias = "routeSummary";
       
        dependencyObjects[4] = cr.new ObjectsHelper();
        dependencyObjects[4].object = new RoadType();
        dependencyObjects[4].alias = "roadType";
       
        dependencyObjects[5] = cr.new ObjectsHelper();
        dependencyObjects[5].object = new RouteInfo();
        dependencyObjects[5].alias = "RouteInfo";

       
        response.getWriter().write("<?xml version='1.0' encoding='UTF-8'?>\n" + cr.getXMLFromObject(ri, dependencyObjects) + "");
      }
View Full Code Here

  }

  public RouteInfo getRoute(RouteStop[] rs, RouteOptions ro, int idLicenca) throws Exception {
    iniDate = System.currentTimeMillis();
    RouteProximityInfo rpi = new RouteProximityInfo();
    RouteInfo ri = new RouteInfo();

    try {

      Validation("getRoute", idLicenca, rs, ro);

      RouteProximityOptions routeOptions = new RouteProximityOptions();

      routeOptions.setLanguage(ro.getLanguage());
      routeOptions.setRouteDetails(new RouteDetails());
      routeOptions.getRouteDetails().setDescriptionType(ro.getRouteDetails().getDescriptionType());
      routeOptions.getRouteDetails().setOptimizeRoute(ro.getRouteDetails().isOptimizeRoute());
      routeOptions.getRouteDetails().setPoiRoute(ro.getRouteDetails().getPoiRoute());
      routeOptions.getRouteDetails().setRouteType(ro.getRouteDetails().getRouteType());

      if (ro.getRouteLine() != null) {
        routeOptions.setRouteLine(new RouteLine[ro.getRouteLine().length]);

        for (int x = 0; x < ro.getRouteLine().length; x++) {
          routeOptions.getRouteLine()[x] = new RouteLine();
          routeOptions.getRouteLine()[x].setRGB(ro.getRouteLine()[x].getRGB());
          routeOptions.getRouteLine()[x].setTransparency(ro.getRouteLine()[x].getTransparency());
          routeOptions.getRouteLine()[x].setWidth(ro.getRouteLine()[x].getWidth());
        }
      }

      routeOptions.setVehicle(new Vehicle());
      routeOptions.getVehicle().setAverageConsumption(ro.getVehicle().getAverageConsumption());
      routeOptions.getVehicle().setAverageSpeed(ro.getVehicle().getAverageSpeed());
      routeOptions.getVehicle().setFuelPrice(ro.getVehicle().getFuelPrice());
      routeOptions.getVehicle().setTankCapacity(ro.getVehicle().getTankCapacity());
      routeOptions.getVehicle().setTollFeeCat(ro.getVehicle().getTollFeeCat());
      CommonRoute r = new CommonRoute(_maquina, _server, _port, _output, _dns, _dataSource, _dataSourceMapa);
      rpi = r.getRoute(idLicenca, rs, routeOptions, CommonRoute._getRoute);
     
      ri.setMapInfo(new MapInfo());
      ri.getMapInfo().setExtent(new Extent());
      ri.getMapInfo().getExtent().setXMax(rpi.getMapInfo().getExtent().getXMax());
      ri.getMapInfo().getExtent().setXMin(rpi.getMapInfo().getExtent().getXMin());
      ri.getMapInfo().getExtent().setYMax(rpi.getMapInfo().getExtent().getYMax());
      ri.getMapInfo().getExtent().setYMin(rpi.getMapInfo().getExtent().getYMin());
      ri.getMapInfo().setUrl(rpi.getMapInfo().getUrl());

      ri.setRoadType(new RoadType());
      ri.setRoadType(rpi.getRoadType());

      ri.setRouteId(rpi.getRouteId());
      if (rpi.getRouteSummary() != null) {
        ri.setRouteSummary(new RouteSummary[rpi.getRouteSummary().length]);

        for (int x = 0; x < rpi.getRouteSummary().length; x++) {
          ri.getRouteSummary()[x] = new RouteSummary();
          ri.getRouteSummary()[x].setDescription(rpi.getRouteSummary()[x].getDescription());
          ri.getRouteSummary()[x].setDistance(rpi.getRouteSummary()[x].getDistance());
          ri.getRouteSummary()[x].setPoint(new Point());
          ri.getRouteSummary()[x].setPoint(rpi.getRouteSummary()[x].getPoint());
        }
      }
      ri.setRouteTotals(new RouteTotals());
      ri.setRouteTotals(rpi.getRouteTotals());
      double totalTime = 0;
      if (rpi.getSegDescription() != null) {
        ri.setSegDescription(new SegmentDescription[rpi.getSegDescription().length]);

        for (int x = 0; x < rpi.getSegDescription().length; x++) {
          ri.getSegDescription()[x] = new SegmentDescription();
          ri.getSegDescription()[x].setCity(new City());
          ri.getSegDescription()[x].getCity().setName(rpi.getSegDescription()[x].getCity().getName());
          ri.getSegDescription()[x].getCity().setState(rpi.getSegDescription()[x].getCity().getState());

          ri.getSegDescription()[x].setCommand(rpi.getSegDescription()[x].getCommand());
          ri.getSegDescription()[x].setCumulativeDistance(rpi.getSegDescription()[x].getCumulativeDistance());
          ri.getSegDescription()[x].setDescription(rpi.getSegDescription()[x].getDescription());
          ri.getSegDescription()[x].setDistance(rpi.getSegDescription()[x].getDistance());
          ri.getSegDescription()[x].setPoint(new Point());
          ri.getSegDescription()[x].getPoint().setX(rpi.getSegDescription()[x].getPoint().getX());
          ri.getSegDescription()[x].getPoint().setY(rpi.getSegDescription()[x].getPoint().getY());
          ri.getSegDescription()[x].setPoiRoute(rpi.getSegDescription()[x].getPoiRoute());

          ri.getSegDescription()[x].setTime(rpi.getSegDescription()[x].getTime());
         
          if (!rpi.getSegDescription()[x].getTime().equals(""))
            totalTime += Double.parseDouble(rpi.getSegDescription()[x].getTime().substring(0,rpi.getSegDescription()[x].getTime().indexOf(' ')));
         
//          String teste="";
//          if (!ri.getSegDescription()[x].getFullCoords().equals(""))
//            teste = convertFromDecarta(7, ri.getSegDescription()[x].getFullCoords());
         
          int z = 0;

          if (rpi.getSegDescription()[x].getPoiRouteDetails() != null) {
            ri.getSegDescription()[x].setPoiRouteDetails(new POIDetails[rpi.getSegDescription()[x].getPoiRouteDetails().length]);

            for (z = 0; z < rpi.getSegDescription()[x].getPoiRouteDetails().length; z++) {
              ri.getSegDescription()[x].getPoiRouteDetails()[z] = new POIDetails();
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setAddressInfo(rpi.getSegDescription()[x].getPoiRouteDetails()[z]
                  .getAddressInfo());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setClientID(rpi.getSegDescription()[x].getPoiRouteDetails()[z]
                  .getClientID());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setName(rpi.getSegDescription()[x].getPoiRouteDetails()[z].getName());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setPoint(new Point());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].getPoint().setX(
                  rpi.getSegDescription()[x].getPoiRouteDetails()[z].getPoint().getX());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].getPoint().setY(
                  rpi.getSegDescription()[x].getPoiRouteDetails()[z].getPoint().getY());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setSource(rpi.getSegDescription()[x].getPoiRouteDetails()[z]
                  .getSource());
            }
          }

          ri.getSegDescription()[x].setRoadType(rpi.getSegDescription()[x].getRoadType());
          ri.getSegDescription()[x].setTollFee(rpi.getSegDescription()[x].getTollFee());

          if (!Functions.IsNullOrEmpty(rpi.getSegDescription()[x].getTollFeeDetails().getAddress())) {
            ri.getSegDescription()[x].setTollFeeDetails(new TollFeeDetails());
            ri.getSegDescription()[x].getTollFeeDetails().setAddress(rpi.getSegDescription()[x].getTollFeeDetails().getAddress());
            ri.getSegDescription()[x].getTollFeeDetails().setConcession(rpi.getSegDescription()[x].getTollFeeDetails().getConcession());
            ri.getSegDescription()[x].getTollFeeDetails().setDirection(rpi.getSegDescription()[x].getTollFeeDetails().getDirection());
            ri.getSegDescription()[x].getTollFeeDetails().setName(rpi.getSegDescription()[x].getTollFeeDetails().getName());
            ri.getSegDescription()[x].getTollFeeDetails().setPhone(rpi.getSegDescription()[x].getTollFeeDetails().getPhone());
            ri.getSegDescription()[x].getTollFeeDetails().setPrice(rpi.getSegDescription()[x].getTollFeeDetails().getPrice());
            ri.getSegDescription()[x].getTollFeeDetails().setPricePerAxle(
                rpi.getSegDescription()[x].getTollFeeDetails().getPricePerAxle());
            ri.getSegDescription()[x].getTollFeeDetails().setState(rpi.getSegDescription()[x].getTollFeeDetails().getState());
          }
        }
      }
      ri.getRouteTotals().setTotalTime(CommonRoute.getTotalTime(totalTime));
      Functions.gravarLogUnique(idLicenca, CommonRoute._getRoute, rs.length, iniDate, 0);
    } catch (Exception e) {
      throw (new Exception(e.getMessage()));
    }
View Full Code Here

   * Calcula a rota e gera a imagem do mapa
   */
  public RouteInfo getRouteWithMap(RouteStop[] rs, RouteOptions ro, MapOptions mo, int idLicenca) throws Exception {
    iniDate = System.currentTimeMillis();

    RouteInfo ri = new RouteInfo();
    RouteProximityInfo rpi = new RouteProximityInfo();

    try {
      Validation("getRouteWithMap", idLicenca, rs, ro);
      RouteProximityOptions routeOptions = new RouteProximityOptions();

      routeOptions.setLanguage(ro.getLanguage());
      routeOptions.setRouteDetails(new RouteDetails());
      routeOptions.getRouteDetails().setDescriptionType(ro.getRouteDetails().getDescriptionType());
      routeOptions.getRouteDetails().setOptimizeRoute(ro.getRouteDetails().isOptimizeRoute());
      routeOptions.getRouteDetails().setPoiRoute(ro.getRouteDetails().getPoiRoute());
      routeOptions.getRouteDetails().setRouteType(ro.getRouteDetails().getRouteType());

      if (ro.getRouteLine() != null) {
        routeOptions.setRouteLine(new RouteLine[ro.getRouteLine().length]);

        for (int x = 0; x < ro.getRouteLine().length; x++) {
          routeOptions.getRouteLine()[x] = new RouteLine();
          routeOptions.getRouteLine()[x].setRGB(ro.getRouteLine()[x].getRGB());
          routeOptions.getRouteLine()[x].setTransparency(ro.getRouteLine()[x].getTransparency());
          routeOptions.getRouteLine()[x].setWidth(ro.getRouteLine()[x].getWidth());
        }
      }

      routeOptions.setVehicle(new Vehicle());
      routeOptions.getVehicle().setAverageConsumption(ro.getVehicle().getAverageConsumption());
      routeOptions.getVehicle().setAverageSpeed(ro.getVehicle().getAverageSpeed());
      routeOptions.getVehicle().setFuelPrice(ro.getVehicle().getFuelPrice());
      routeOptions.getVehicle().setTankCapacity(ro.getVehicle().getTankCapacity());
      routeOptions.getVehicle().setTollFeeCat(ro.getVehicle().getTollFeeCat());

      CommonRoute r = new CommonRoute(_maquina, _server, _port, _output, _dns, _dataSource, _dataSourceMapa);
      rpi = r.getRouteWithMap(idLicenca, CommonRoute._getRouteWithMap, rs, routeOptions, mo);

      ri.setMapInfo(new MapInfo());
      ri.getMapInfo().setExtent(new Extent());
      ri.getMapInfo().getExtent().setXMax(rpi.getMapInfo().getExtent().getXMax());
      ri.getMapInfo().getExtent().setXMin(rpi.getMapInfo().getExtent().getXMin());
      ri.getMapInfo().getExtent().setYMax(rpi.getMapInfo().getExtent().getYMax());
      ri.getMapInfo().getExtent().setYMin(rpi.getMapInfo().getExtent().getYMin());
      ri.getMapInfo().setUrl(rpi.getMapInfo().getUrl());

      ri.setRoadType(new RoadType());
      ri.setRoadType(rpi.getRoadType());

      ri.setRouteId(rpi.getRouteId());

      if (rpi.getRouteSummary() != null) {
        ri.setRouteSummary(new RouteSummary[rpi.getRouteSummary().length]);

        for (int x = 0; x < rpi.getRouteSummary().length; x++) {
          ri.getRouteSummary()[x] = new RouteSummary();
          ri.getRouteSummary()[x].setDescription(rpi.getRouteSummary()[x].getDescription());
          ri.getRouteSummary()[x].setDistance(rpi.getRouteSummary()[x].getDistance());
          ri.getRouteSummary()[x].setPoint(new Point());
          ri.getRouteSummary()[x].setPoint(rpi.getRouteSummary()[x].getPoint());
        }
      }

      ri.setRouteTotals(new RouteTotals());
      ri.setRouteTotals(rpi.getRouteTotals());

      if (rpi.getSegDescription() != null) {
        ri.setSegDescription(new SegmentDescription[rpi.getSegDescription().length]);

        for (int x = 0; x < rpi.getSegDescription().length; x++) {
          ri.getSegDescription()[x] = new SegmentDescription();
          ri.getSegDescription()[x].setCity(new City());
          ri.getSegDescription()[x].getCity().setName(rpi.getSegDescription()[x].getCity().getName());
          ri.getSegDescription()[x].getCity().setState(rpi.getSegDescription()[x].getCity().getState());

          ri.getSegDescription()[x].setCommand(rpi.getSegDescription()[x].getCommand());
          ri.getSegDescription()[x].setCumulativeDistance(rpi.getSegDescription()[x].getCumulativeDistance());
          ri.getSegDescription()[x].setDescription(rpi.getSegDescription()[x].getDescription());
          ri.getSegDescription()[x].setDistance(rpi.getSegDescription()[x].getDistance());
          ri.getSegDescription()[x].setPoint(new Point());
          ri.getSegDescription()[x].getPoint().setX(rpi.getSegDescription()[x].getPoint().getX());
          ri.getSegDescription()[x].getPoint().setY(rpi.getSegDescription()[x].getPoint().getY());
          ri.getSegDescription()[x].setPoiRoute(rpi.getSegDescription()[x].getPoiRoute());

          int z = 0;

          if (rpi.getSegDescription()[x].getPoiRouteDetails() != null) {
            ri.getSegDescription()[x].setPoiRouteDetails(new POIDetails[rpi.getSegDescription()[x].getPoiRouteDetails().length]);

            for (z = 0; z < rpi.getSegDescription()[x].getPoiRouteDetails().length; z++) {
              ri.getSegDescription()[x].getPoiRouteDetails()[z] = new POIDetails();
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setAddressInfo(rpi.getSegDescription()[x].getPoiRouteDetails()[z]
                  .getAddressInfo());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setClientID(rpi.getSegDescription()[x].getPoiRouteDetails()[z]
                  .getClientID());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setName(rpi.getSegDescription()[x].getPoiRouteDetails()[z].getName());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setPoint(new Point());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].getPoint().setX(
                  rpi.getSegDescription()[x].getPoiRouteDetails()[z].getPoint().getX());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].getPoint().setY(
                  rpi.getSegDescription()[x].getPoiRouteDetails()[z].getPoint().getY());
              ri.getSegDescription()[x].getPoiRouteDetails()[z].setSource(rpi.getSegDescription()[x].getPoiRouteDetails()[z]
                  .getSource());
            }
          }

          ri.getSegDescription()[x].setRoadType(rpi.getSegDescription()[x].getRoadType());
          ri.getSegDescription()[x].setTollFee(rpi.getSegDescription()[x].getTollFee());

          if (!Functions.IsNullOrEmpty(rpi.getSegDescription()[x].getTollFeeDetails().getAddress())) {
            ri.getSegDescription()[x].setTollFeeDetails(new TollFeeDetails());
            ri.getSegDescription()[x].getTollFeeDetails().setAddress(rpi.getSegDescription()[x].getTollFeeDetails().getAddress());
            ri.getSegDescription()[x].getTollFeeDetails().setConcession(rpi.getSegDescription()[x].getTollFeeDetails().getConcession());
            ri.getSegDescription()[x].getTollFeeDetails().setDirection(rpi.getSegDescription()[x].getTollFeeDetails().getDirection());
            ri.getSegDescription()[x].getTollFeeDetails().setName(rpi.getSegDescription()[x].getTollFeeDetails().getName());
            ri.getSegDescription()[x].getTollFeeDetails().setPhone(rpi.getSegDescription()[x].getTollFeeDetails().getPhone());
            ri.getSegDescription()[x].getTollFeeDetails().setPrice(rpi.getSegDescription()[x].getTollFeeDetails().getPrice());
            ri.getSegDescription()[x].getTollFeeDetails().setPricePerAxle(
                rpi.getSegDescription()[x].getTollFeeDetails().getPricePerAxle());
            ri.getSegDescription()[x].getTollFeeDetails().setState(rpi.getSegDescription()[x].getTollFeeDetails().getState());
          }
        }
      }

      Functions.gravarLogUnique(idLicenca, CommonRoute._getRouteWithMap, rs.length, iniDate, 0);
View Full Code Here

        );
        switch (getService(proxy.GetService()))
        {
            case getRoute:
                o = Common.getArrayByJSon(proxy.getParameters("tjss"), new Class[] { RouteStop.class, RouteOptions.class });
                RouteInfo ri = route.getRoute((RouteStop[])tranformToArrayList((Object[])o[0]).toArray(new RouteStop[0]), (RouteOptions)o[1], tk.getId());
                respostaWs = Common.SerializeJSObject(ri);
                break;
            case getRouteTotals:
                o = Common.getArrayByJSon(proxy.getParameters("tjss"), new Class[] { RouteStop.class, RouteOptions.class });
                RouteTotals rt = route.getRouteTotals((RouteStop[])tranformToArrayList((Object[])o[0]).toArray(new RouteStop[0]), (RouteOptions)o[1], tk.getId());
                respostaWs = Common.SerializeJSObject(rt);
                break;
            case getRouteDescription:
                o = Common.getArrayByJSon(proxy.getParameters("tjss"), new Class[] { RouteStop.class, RouteOptions.class });
                SegmentDescription[] sd = route.getRouteDescription((RouteStop[])tranformToArrayList((Object[])o[0]).toArray(new RouteStop[0]), (RouteOptions)o[1], tk.getId());
                respostaWs = Common.SerializeJSObject(sd);
                break;
            case getRouteWithMap:
                o = Common.getArrayByJSon(proxy.getParameters("tjss"), new Class[] { RouteStop.class, RouteOptions.class, MapOptions.class });
                RouteInfo rwm = route.getRouteWithMap((RouteStop[])tranformToArrayList((Object[])o[0]).toArray(new RouteStop[0]), (RouteOptions)o[1], (MapOptions)o[2], tk.getId());
                respostaWs = Common.SerializeJSObject(rwm);
                break;
            case getRouteSummary:
                o = Common.getArrayByJSon(proxy.getParameters("tjss"), new Class[] { RouteStop.class, RouteOptions.class });
                RouteSummary[] rs = route.getRouteSummary((RouteStop[])tranformToArrayList((Object[])o[0]).toArray(new RouteStop[0]), (RouteOptions)o[1], tk.getId());
View Full Code Here

TOP

Related Classes of com.lbslocal.cc.objects.v3.proximity.ProximityInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.