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

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


        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";
View Full Code Here


      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());
        }
      }
View Full Code Here

      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());
        }
      }
View Full Code Here

      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());
        }
      }
View Full Code Here

      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());
        }
      }
View Full Code Here

      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());
        }
      }
View Full Code Here

      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());
        }
      }
View Full Code Here

        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")){
View Full Code Here

    return rt;
  }

  public RouteProximityInfo getRouteWithMap(int idLicenca, int methodID, RouteStop[] rs, RouteProximityOptions ro, MapOptions mo) throws Exception {
    RouteProximityInfo ri = new RouteProximityInfo();

    String response = "";

    Calendar lCDateTime = Calendar.getInstance();
    String routeID = _maquina + "_" + lCDateTime.getTimeInMillis();

    try {
      try {
        response = requestRoute(routeID, true, rs, ro, new Extent(), mo.getMapSize(), null, idLicenca, _dataSource, methodID);
        ri.setRouteId(routeID);

        // ri.setProximityList(getRouteProximity(response, ro.radius,
        // idLicenca, ro.routeDetails.getRouteType()));

        ri.setSegDescription(getSegmentDescriptionAlternative(response, ro.getVehicle().getTollFeeCat(), ro, rs, _dataSource, idLicenca));
        ri.setRouteTotals(getTotals(ri.getSegDescription(), ro, rs, totalPedagios));
        ri.setRoadType(getRoadType(ri.getSegDescription()));
        ri.setRouteSummary(getSummary(ri.getSegDescription(), rs, ro));

        try {
          CommonMap commonMap;

          commonMap = new CommonMap(_server, _port, _maquina, _output, _dns, _dataSourceMapa);

          gExt = Functions.doZoom(gExt, 0.1);
          ri.setMapInfo(commonMap.getZoomRadius(routeID, response, gExt, mo, idLicenca, CommonMap._getMap));
        } catch (Exception ex1) {
          throw (ex1);
        }
      } catch (Exception ex) {
        throw (ex);
View Full Code Here

    return ri;
  }

  public RouteProximityInfo getRoute(int idLicenca, RouteStop[] rs, RouteProximityOptions ro, int methodID) throws Exception {
    RouteProximityInfo ri = new RouteProximityInfo();
    String response = "";

    String routeID = _maquina + "_" + Calendar.getInstance().getTimeInMillis();

    try {

      response = requestRoute(routeID, true, rs, ro, new Extent(), new MapSize(), null, idLicenca, _dataSource, methodID);

      ri.setRouteId(routeID);

      // ri.setProximityList(getRouteProximity(response, ro.radius,
      // idLicenca, ro.routeDetails.getRouteType()));

      MapInfo mapInfo = new MapInfo();
      mapInfo.setUrl("");

      String XMaxYMax = response.substring(response.indexOf("LLMAX=") + 6); // .substring(0,
                                          // response.substring(response.indexOf("LLMAX=")
                                          // +
                                          // 6).indexOf(Pattern.quote("|")));
      XMaxYMax = XMaxYMax.substring(0, XMaxYMax.indexOf("|"));
      String XMinYMin = response.substring(response.indexOf("LLMIN=") + 6); // .substring(0,
                                          // response.substring(response.indexOf("LLMIN=")
                                          // +
                                          // 6).indexOf(Pattern.quote("%")));
      XMinYMin = XMinYMin.substring(0, XMinYMin.indexOf("%"));

      mapInfo.setExtent(new Extent());
      mapInfo.getExtent().setXMax(Double.parseDouble(XMaxYMax.split(Pattern.quote(","))[1]));
      mapInfo.getExtent().setXMin(Double.parseDouble(XMinYMin.split(Pattern.quote(","))[1]));
      mapInfo.getExtent().setYMax(Double.parseDouble(XMaxYMax.split(Pattern.quote(","))[0]));
      mapInfo.getExtent().setYMin(Double.parseDouble(XMinYMin.split(Pattern.quote(","))[0]));

      ri.setMapInfo(mapInfo);
      ri.setSegDescription(getSegmentDescriptionAlternative(response, ro.getVehicle().getTollFeeCat(), ro, rs, _dataSource, idLicenca));
      ri.setRouteTotals(getTotals(ri.getSegDescription(), ro, rs, totalPedagios));
      ri.setRoadType(getRoadType(ri.getSegDescription()));

      ri.setRouteSummary(getSummary(ri.getSegDescription(), rs, ro));
    } catch (Exception ex) {
      Utils.LogError("CC", "RouteProximityInfo getRoute", "Error: " + ex.getMessage());
      throw (ex);
    }
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.