mirror of
https://github.com/opentripplanner/OpenTripPlanner.git
synced 2026-04-03 15:26:08 +02:00
23 lines
736 B
Java
23 lines
736 B
Java
package org.opentripplanner.graph_builder.module.nearbystops;
|
|
|
|
import java.util.Collection;
|
|
import org.opentripplanner.routing.api.request.RouteRequest;
|
|
import org.opentripplanner.routing.graphfinder.NearbyStop;
|
|
import org.opentripplanner.street.model.StreetMode;
|
|
import org.opentripplanner.street.model.vertex.Vertex;
|
|
|
|
/**
|
|
* Interface for finding nearby stops from a given vertex. It is used by access
|
|
* and egress searches, and in transfer generation.
|
|
*/
|
|
public interface NearbyStopFinder {
|
|
/**
|
|
* Return all stops within a certain distance from the given vertex.
|
|
*/
|
|
Collection<NearbyStop> findNearbyStops(
|
|
Vertex vertex,
|
|
RouteRequest routingRequest,
|
|
StreetMode streetMode,
|
|
boolean reverseDirection
|
|
);
|
|
}
|