Package org.onebusaway.api.model.transit

Examples of org.onebusaway.api.model.transit.ItineraryV2BeanFactory


    ListBean<VertexBean> vertices = _transitDataService.getStreetGraphForRegion(
        _latFrom, _lonFrom, _latTo, _lonTo);

    BeanFactoryV2 factory = getBeanFactoryV2();
    ItineraryV2BeanFactory itineraryFactory = new ItineraryV2BeanFactory(
        factory);

    GraphResultV2Bean bean = itineraryFactory.getGraphResult(vertices.getList());
    return setOkResponse(factory.entry(bean));
  }
View Full Code Here


      _time = System.currentTimeMillis();
    if (_constraints.getCurrentTime() == -1)
      _constraints.setCurrentTime(System.currentTimeMillis());

    BeanFactoryV2 factory = getBeanFactoryV2();
    ItineraryV2BeanFactory itineraryFactory = new ItineraryV2BeanFactory(
        factory);

    parseSelectedItinerary(itineraryFactory, _includeSelectedItinerary,
        _constraints);

    ItinerariesBean itineraries = _transitDataService.getItinerariesBetween(
        _from, _to, _time, _constraints);

    ItinerariesV2Bean bean = itineraryFactory.getItineraries(itineraries);
    return setOkResponse(factory.entry(bean));
  }
View Full Code Here

      _time = System.currentTimeMillis();
    if (_constraints.getCurrentTime() == -1)
      _constraints.setCurrentTime(System.currentTimeMillis());

    BeanFactoryV2 factory = getBeanFactoryV2();
    ItineraryV2BeanFactory itineraryFactory = new ItineraryV2BeanFactory(
        factory);

    PlanTripAction.parseSelectedItinerary(itineraryFactory,
        _includeSelectedItinerary, _constraints);
View Full Code Here

TOP

Related Classes of org.onebusaway.api.model.transit.ItineraryV2BeanFactory

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.