Package com.apps.ubc.cc.model

Examples of com.apps.ubc.cc.model.LatLongModel


  public List<LatLongModel> findUnique(
      List<LatLongModel> list) {
    List<LatLongModel> result = new ArrayList<LatLongModel>();
    for(Iterator<LatLongModel> i = list.iterator(); i.hasNext();){
      LatLongModel llm = i.next();
      if(!result.contains(llm))
        result.add(llm);
     
    }
   
View Full Code Here


      addrParser = new UBCWayfindingService();
      addr = addrParser.search(course_list.get(j).getBuilding());

      if (addr != null) {
        LatLongModel geo = new LatLongModel(addr.getLatitude(),
            addr.getLongitude());
        sort_term.add(geo);
        System.out.println("Course name: "
            + course_list.get(j).getSectionId());
      }
View Full Code Here

      else if(action.equals("getwaypoints")){
        String term = req.getParameter("term");
        List<LatLongModel> llml = cs.getLatLongByTerm(siol, term);
        for(Iterator<LatLongModel> i = llml.iterator();i.hasNext();){
          xmlout += "\t<waypoint>\n";
          LatLongModel llm = i.next();
          xmlout += "\t\t<lat>"+llm.getLatitude()+"</lat>\n";
          xmlout += "\t\t<long>"+llm.getLongitude()+"</long>\n";
          xmlout += "\t</waypoint>\n";
        }
      }
     
      xmlout += "</response>";
View Full Code Here

TOP

Related Classes of com.apps.ubc.cc.model.LatLongModel

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.