All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.service.vehiclerental.VehicleRentalService Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.service.vehiclerental;

import java.util.Collection;
import java.util.List;
import org.locationtech.jts.geom.Envelope;
import org.opentripplanner.service.vehiclerental.model.VehicleRentalPlace;
import org.opentripplanner.service.vehiclerental.model.VehicleRentalStation;
import org.opentripplanner.service.vehiclerental.model.VehicleRentalVehicle;
import org.opentripplanner.transit.model.framework.FeedScopedId;

/**
 * The read-only service for getting information about rental vehicles.
 * 

* For writing data see {@link VehicleRentalRepository} */ public interface VehicleRentalService { Collection getVehicleRentalPlaces(); VehicleRentalPlace getVehicleRentalPlace(FeedScopedId id); List getVehicleRentalVehicles(); VehicleRentalVehicle getVehicleRentalVehicle(FeedScopedId id); List getVehicleRentalStations(); VehicleRentalStation getVehicleRentalStation(FeedScopedId id); boolean hasRentalBikes(); /** * Gets all the vehicle rental stations inside the envelope. This is currently done by iterating * over a set, but we could use a spatial index if the number of vehicle rental stations is high * enough for performance to be a concern. */ List getVehicleRentalStationForEnvelope( double minLon, double minLat, double maxLon, double maxLat ); /** * Gets all vehicle rental places inside an envelope. */ List getVehicleRentalPlacesForEnvelope(Envelope envelope); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy