Interface ShoppingTransportOfferingService

All Superinterfaces:
TransportOfferingService
All Known Subinterfaces:
PROSTransportOfferingService
All Known Implementing Classes:
DefaultPROSTransportOfferingService, DefaultShoppingTransportOfferingService

public interface ShoppingTransportOfferingService extends TransportOfferingService
This interface exposes the methods for getting the origin and the destination given a list of transport offerings.
  • Method Details

    • getOrigin

      TransportFacilityModel getOrigin(List<TransportOfferingModel> transportOfferings)
      Gets the origin from a sorted list of transport offerings.
      Parameters:
      transportOfferings - a list of transport offerings
      Returns:
      the origin location
    • getDestination

      TransportFacilityModel getDestination(List<TransportOfferingModel> transportOfferings)
      Gets the destination from a sorted list of transport offerings.
      Parameters:
      transportOfferings - a list of transport offerings
      Returns:
      the destination location