Uses of Class
rgu.transport.geospatial.GeoLocation
Packages that use GeoLocation
Package
Description
Geospatial data.
Multimodal geospatial data such as public transport networks.
Implementation of General Transit Feed Specification (GTFS) data loading.
Implementation of OpenStreetMap (OSM) data loading.
Non-exported implementation for rgu.transport module, not to be used by other modules.
Transport modelling utility classes.
-
Uses of GeoLocation in rgu.transport.geospatial
Fields in rgu.transport.geospatial declared as GeoLocationModifier and TypeFieldDescriptionstatic GeoLocationGeoLocation.NULL_ISLANDThe coordinates 0, 0.Fields in rgu.transport.geospatial with type parameters of type GeoLocationModifier and TypeFieldDescriptionstatic Metric<GeoLocation, Distance> GeoLocation.HAVERSINEThe haversine distance, the "great circle" distance across the surface of the Earth as a distance.Methods in rgu.transport.geospatial that return GeoLocationModifier and TypeMethodDescriptionstatic GeoLocationReturns an instance of location for the specified latitude and longitude.static GeoLocationGeoLocation.ofRounded(double latitude, double longitude) Rounds the specified doubles to a location.static GeoLocationGeoLocation.parseLocation(String latitude, String longitude) Parses and returns latitude, longitude pair of strings.static GeoLocationGeoLocation.parseLocationTruncate(String latitude, String longitude) Parses and returns latitude, longitude pair of strings.static GeoLocationGeoLocation.read(ObjectInputStream in) Reads a location from the specified input stream.Methods in rgu.transport.geospatial that return types with arguments of type GeoLocationModifier and TypeMethodDescriptionstatic Iterable<GeoLocation> GeoLocation.grid(Latitude latMin, Latitude latMax, BigDecimal latDelta, Longitude lonMin, Longitude lonMax, BigDecimal lonDelta) Returns a grid of locations in a rectangle bounded by latitude and longitude, with given increments.static NearestFinder<GeoLocation> GeoLocation.nearestHaversine(Collection<GeoLocation> elements) Returns a nearest finder for the given collection of points, using the Euclidean distance.static NearestFinder<GeoLocation> GeoLocation.nearestHaversine(Collection<GeoLocation> elements, Distance maxDistance) Returns a nearest finder for the given collection of points, using the Euclidean distance, limited to a given maximum distance.static NearestFinder<GeoLocation> GeoLocation.nearestStretchedEuclidean(double ratio, Collection<GeoLocation> elements) Returns a nearest finder for the given collection of points, using the Euclidean distance.static NearestFinder<GeoLocation> GeoLocation.nearestStretchedEuclidean(double ratio, Collection<GeoLocation> elements, double maxDistance) Returns a nearest finder for the given collection of points, using the Euclidean distance, limited to a given maximum distance.static Predicate<GeoLocation> Returns a predicate which tests whether a point is contained within a given rectangle.static Metric<GeoLocation, Double> GeoLocation.stretchedEuclidean(double ratio) The Euclidean distance, with a stretch ratio set.Method parameters in rgu.transport.geospatial with type arguments of type GeoLocationModifier and TypeMethodDescriptionstatic NearestFinder<GeoLocation> GeoLocation.nearestHaversine(Collection<GeoLocation> elements) Returns a nearest finder for the given collection of points, using the Euclidean distance.static NearestFinder<GeoLocation> GeoLocation.nearestHaversine(Collection<GeoLocation> elements, Distance maxDistance) Returns a nearest finder for the given collection of points, using the Euclidean distance, limited to a given maximum distance.static NearestFinder<GeoLocation> GeoLocation.nearestStretchedEuclidean(double ratio, Collection<GeoLocation> elements) Returns a nearest finder for the given collection of points, using the Euclidean distance.static NearestFinder<GeoLocation> GeoLocation.nearestStretchedEuclidean(double ratio, Collection<GeoLocation> elements, double maxDistance) Returns a nearest finder for the given collection of points, using the Euclidean distance, limited to a given maximum distance. -
Uses of GeoLocation in rgu.transport.geospatial.multimodal
Methods in rgu.transport.geospatial.multimodal that return GeoLocationModifier and TypeMethodDescriptionTrip.destination()Returns the destination.JourneyPosition.location()Returns the location.JourneyState.location()Returns the location.Methods in rgu.transport.geospatial.multimodal that return types with arguments of type GeoLocationModifier and TypeMethodDescriptionTransitNetwork.Builder.locations()TransitNetwork.locations()TransitNetwork.nearestEuclidean()Deprecated, for removal: This API element is subject to removal in a future version.TransitNetwork.nearestHaversine()Returns a neighbour finder based on which location is nearest on the Haversine space.TransitNetwork.nearestStretchedEuclidean(double ratio) Returns a neighbour finder based on which location is nearest on the Euclidean space.TransitNetwork.nearestStretchedEuclidean(GeoLocation at) Returns a neighbour finder based on which location is nearest on the Euclidean space.NetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction) Returns a map of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.NetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction, Map<GeoLocation, List<Trip>> extra) Returns a map of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.TransitNetwork.roadNeighbours(GeoLocation location) TransitNetwork.scanForAllTransitPoints()Returns a list of locations which are departure or arrival points for transit edges.TransitNetwork.transitDeparturePoints()Returns a list of locations which are departure points for transit edges.Methods in rgu.transport.geospatial.multimodal with parameters of type GeoLocationModifier and TypeMethodDescriptionvoidTransitNetwork.Builder.addArtificialEdge(GeoLocation a, GeoLocation b, Duration duration) TransitNetwork.Builder.addLocation(GeoLocation location) Add the specified location.TransitNetwork.Builder.addRoad(GeoLocation from, GeoLocation to) Adds the specified road edge.TransitNetwork.Builder.addTransit(GeoLocation from, GeoLocation to, LocalTime departureTime, LocalTime arrivalTime) static Predicate<JourneyPosition> JourneyPosition.atLocation(GeoLocation location) static Predicate<JourneyPosition> JourneyPosition.atLocation(GeoLocation location, boolean vehicle) static Predicate<JourneyState> JourneyState.atLocation(GeoLocation location) Creates a predicate which matches any JourneyState which is at the specified location.static Predicate<JourneyState> JourneyState.atLocation(GeoLocation location, boolean vehicle) Creates a predicate which matches any JourneyState which is at the specified location with the specified vehicle state.TransitNetwork.nearestStretchedEuclidean(GeoLocation at) Returns a neighbour finder based on which location is nearest on the Euclidean space.static JourneyPositionJourneyPosition.of(GeoLocation location, boolean vehicle, boolean busPass) static JourneyPositionJourneyPosition.of(GeoLocation location, boolean vehicle, boolean busPass, boolean artifical) static JourneyPositionJourneyPosition.of(GeoLocation location, boolean vehicle, boolean busPass, boolean artifical, String hiddenMetaData) static JourneyPositionJourneyPosition.of(GeoLocation location, boolean vehicle, boolean busPass, String hiddenMetaData) static JourneyStateJourneyState.of(GeoLocation location, LocalDateTime time, boolean vehicle, boolean busPass) Returns a journey state for the given location and time.static JourneyStateJourneyState.of(GeoLocation location, LocalDateTime time, boolean vehicle, boolean busPass, boolean artificial) Returns a journey state for the given location and time.static JourneyStateJourneyState.of(GeoLocation location, LocalDateTime time, boolean vehicle, boolean busPass, boolean artificial, String hiddenMetaData) static JourneyStateJourneyState.of(GeoLocation location, LocalDateTime time, boolean vehicle, boolean busPass, String hiddenMetaData) TransitNetwork.outgoingTrips(GeoLocation from) Returns a list of Trips which depart from a given location.NetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction) Returns a map of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.voidNetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction, BiConsumer<GeoLocation, Duration> consumer) Streams to a callback function the set of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.NetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction, Map<GeoLocation, List<Trip>> extra) Returns a map of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.voidNetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction, Map<GeoLocation, List<Trip>> extra, BiConsumer<GeoLocation, Duration> consumer) Streams to a callback function the set of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.TransitNetwork.roadNeighbours(GeoLocation location) TransitNetwork.scanForIncomingTrips(GeoLocation to) Returns a list of Trips which arrive at a given location.TransitNetwork.Builder.transitNeighbours(GeoLocation location) Returns the neighbours reachable by transit.TransitNetwork.transitNeighbours(GeoLocation location) Method parameters in rgu.transport.geospatial.multimodal with type arguments of type GeoLocationModifier and TypeMethodDescriptionTransitNetwork.Builder.addRoadGraph(Graph<GeoLocation, ?> graph, ProgressListener progress) static TransitNetwork.BuilderTransitNetwork.copyAll(Collection<TransitNetwork> networks, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Creates a builder by copying the contents of a collection of transit networks.static TransitNetwork.BuilderTransitNetwork.copyAll(Collection<TransitNetwork> networks, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Creates a builder by copying the contents of a collection of transit networks.static TransitNetworkNetworkAndRoadJoiner.join(TransitNetwork transitNetwork, Graph<GeoLocation, RoadEdge> roadGraph, Speed drivingSpeed, Speed walkingSpeed, Distance maxDistanceToNearbyRoad, BiConsumer<GeoLocation, GeoLocation> consumerRoadEdge, BiConsumer<GeoLocation, GeoLocation> consumerTransitEdge, BiConsumer<GeoLocation, GeoLocation> consumerArtificialEdge, ProgressListener progress) Joins a transit network to a road network.static TransitNetworkNetworkAndRoadJoiner.join(TransitNetwork transitNetwork, Graph<GeoLocation, RoadEdge> roadGraph, Speed drivingSpeed, Speed walkingSpeed, Distance maxDistanceToNearbyRoad, BiConsumer<GeoLocation, GeoLocation> consumerRoadEdge, BiConsumer<GeoLocation, GeoLocation> consumerTransitEdge, BiConsumer<GeoLocation, GeoLocation> consumerArtificialEdge, ProgressListener progress) Joins a transit network to a road network.static TransitNetworkNetworkAndRoadJoiner.join(TransitNetwork transitNetwork, Graph<GeoLocation, RoadEdge> roadGraph, Speed drivingSpeed, Speed walkingSpeed, Distance maxDistanceToNearbyRoad, BiConsumer<GeoLocation, GeoLocation> consumerRoadEdge, BiConsumer<GeoLocation, GeoLocation> consumerTransitEdge, BiConsumer<GeoLocation, GeoLocation> consumerArtificialEdge, ProgressListener progress) Joins a transit network to a road network.voidNetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction, BiConsumer<GeoLocation, Duration> consumer) Streams to a callback function the set of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.NetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction, Map<GeoLocation, List<Trip>> extra) Returns a map of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.voidNetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction, Map<GeoLocation, List<Trip>> extra, BiConsumer<GeoLocation, Duration> consumer) Streams to a callback function the set of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.voidNetworkSearcher.reachable(GeoLocation location, LocalTime earliestDeparture, LocalTime latestArrival, TravelDirection direction, Map<GeoLocation, List<Trip>> extra, BiConsumer<GeoLocation, Duration> consumer) Streams to a callback function the set of locations reachable within the given time windows, and the corresponding cost of each location's shortest path duration.static final TransitNetworkTransitNetwork.read(ObjectInputStream in, BiConsumer<GeoLocation, GeoLocation> consumer, BiConsumer<GeoLocation, GeoLocation> consumerArtificial) static final TransitNetworkTransitNetwork.read(ObjectInputStream in, BiConsumer<GeoLocation, GeoLocation> consumer, BiConsumer<GeoLocation, GeoLocation> consumerArtificial) static final TransitNetworkTransitNetwork.read(ObjectInputStream in, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> consumer, BiConsumer<GeoLocation, GeoLocation> consumerArtificial) static final TransitNetworkTransitNetwork.read(ObjectInputStream in, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> consumer, BiConsumer<GeoLocation, GeoLocation> consumerArtificial) static final TransitNetworkTransitNetwork.read(ObjectInputStream in, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> consumer, BiConsumer<GeoLocation, GeoLocation> consumerArtificial) voidNetworkJoiner.run(BiConsumer<GeoLocation, GeoLocation> consumer, BiConsumer<GeoLocation, GeoLocation> consumerArtificial, ProgressListener progress, Consumer<TransitNetwork> callback) Runs the joiner to produce a joined network.voidNetworkJoiner.run(BiConsumer<GeoLocation, GeoLocation> consumer, BiConsumer<GeoLocation, GeoLocation> consumerArtificial, ProgressListener progress, Consumer<TransitNetwork> callback) Runs the joiner to produce a joined network.TransitNetwork.spatialTemporalGraph(Map<GeoLocation, List<Trip>> extra) TransitNetwork.spatialTemporalGraph(Map<GeoLocation, List<Trip>> extra, boolean freeArtificial) Constructors in rgu.transport.geospatial.multimodal with parameters of type GeoLocationModifierConstructorDescriptionTrip(LocalTime departureTime, LocalTime arrivalTime, GeoLocation destination) Creates a trip.Constructor parameters in rgu.transport.geospatial.multimodal with type arguments of type GeoLocationModifierConstructorDescriptionNetworkJoiner(Graph<GeoLocation, RoadEdge> roadGraph, TwoDTree<GeoLocation> tree, Collection<TransitNetwork> networks, Speed speed, Duration maxTime, Distance maxDistanceToNearbyRoad) Creates a joiner which will connect multiple transit networks to one another.NetworkJoiner(Graph<GeoLocation, RoadEdge> roadGraph, TwoDTree<GeoLocation> tree, Collection<TransitNetwork> networks, Speed speed, Duration maxTime, Distance maxDistanceToNearbyRoad) Creates a joiner which will connect multiple transit networks to one another. -
Uses of GeoLocation in rgu.transport.geospatial.multimodal.gtfs
Method parameters in rgu.transport.geospatial.multimodal.gtfs with type arguments of type GeoLocationModifier and TypeMethodDescriptionstatic voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSLoader.load(GTFSDataSource source, TransitNetwork.Builder builder, Set<GeoLocation> points, Predicate<GeoLocation> spatialFilter, Predicate<LocalTime> temporalFilter, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> drawLine, boolean skipMissingInRoute, GTFSProgressListener progress) Deprecated, for removal: This API element is subject to removal in a future version.static voidGTFSParser.load(GTFSDataSource source, TransitNetwork.Builder builder, Range<LocalDate> dateRange, Predicate<GeoLocation> locationFilter, boolean allowBrokenRoutes, GTFSProgressListener progress, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> edgeLocationConsumer) Loads the specified GTFS data source.static voidGTFSParser.load(GTFSDataSource source, TransitNetwork.Builder builder, Range<LocalDate> dateRange, Predicate<GeoLocation> locationFilter, boolean allowBrokenRoutes, GTFSProgressListener progress, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> edgeLocationConsumer) Loads the specified GTFS data source.static voidGTFSParser.load(GTFSDataSource source, TransitNetwork.Builder builder, Range<LocalDate> dateRange, Predicate<GeoLocation> locationFilter, boolean allowBrokenRoutes, GTFSProgressListener progress, AtomicReference<Runnable> cancel, BiConsumer<GeoLocation, GeoLocation> edgeLocationConsumer) Loads the specified GTFS data source. -
Uses of GeoLocation in rgu.transport.geospatial.osm
Methods in rgu.transport.geospatial.osm that return types with arguments of type GeoLocationModifier and TypeMethodDescriptionstatic Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph) Adapts the specified graph using the speed defined by the road edges.static Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph, Speed speed) Adapts the specified graph using the specified fixed speed.NoSpeedOSMBuilder.build()SimpleOSMBuilder.build()static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.containsBothEndPoints(Predicate<GeoLocation> filter) A predicate which is true if both end points of a graph edge match the given predicate.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.containsEitherEndPoint(Predicate<GeoLocation> filter) A predicate which is true if either end point of a graph edge matches the given predicate.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.hasDefinedSpeed()A predicate which is true if the edge has a defined speed, whether positive or zero.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.hasUndefinedSpeed()A predicate which is true if the edge has a undefined speed.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.hasZeroSpeed()A predicate which is true if the edge has a defined speed, and the speed value is 0 m/s.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedDefault(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed defaultSpeed) A function which applies a default speed to edges with undefined speed.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedMultiplier(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, double multiplicationFactor) A function which multiplies the speed limit by a given amount.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedReplacement(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed newSpeed) A function which replaces the speed limit by a given amount.NoSpeedOSMBuilder.vertices()SimpleOSMBuilder.vertices()Methods in rgu.transport.geospatial.osm with parameters of type GeoLocationModifier and TypeMethodDescriptionvoidNoSpeedOSMBuilder.location(long id, GeoLocation location, String version, LocalDateTime timestamp, Map<String, String> tags) default voidOSMListener.location(long id, GeoLocation location, String version, LocalDateTime timestamp, Map<String, String> tags) Called on loading new location (node) information.voidSimpleOSMBuilder.location(long id, GeoLocation location, String version, LocalDateTime timestamp, Map<String, String> tags) Method parameters in rgu.transport.geospatial.osm with type arguments of type GeoLocationModifier and TypeMethodDescriptionstatic Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph) Adapts the specified graph using the speed defined by the road edges.static Graph<GeoLocation, Duration> DurationAdapter.adapt(Graph<GeoLocation, RoadEdge> graph, Speed speed) Adapts the specified graph using the specified fixed speed.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.containsBothEndPoints(Predicate<GeoLocation> filter) A predicate which is true if both end points of a graph edge match the given predicate.static Predicate<Graph.Edge<GeoLocation, RoadEdge>> RoadEdge.containsEitherEndPoint(Predicate<GeoLocation> filter) A predicate which is true if either end point of a graph edge matches the given predicate.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedDefault(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed defaultSpeed) A function which applies a default speed to edges with undefined speed.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedMultiplier(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, double multiplicationFactor) A function which multiplies the speed limit by a given amount.static Function<Graph.Edge<GeoLocation, RoadEdge>, RoadEdge> RoadEdge.speedReplacement(Predicate<Graph.Edge<GeoLocation, RoadEdge>> filter, Speed newSpeed) A function which replaces the speed limit by a given amount.Constructor parameters in rgu.transport.geospatial.osm with type arguments of type GeoLocationModifierConstructorDescriptionNoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, BiConsumer<GeoLocation, GeoLocation> drawLine) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, BiConsumer<GeoLocation, GeoLocation> drawLine) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, BiConsumer<GeoLocation, GeoLocation> drawLine, OSMProgressListener progress) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, BiConsumer<GeoLocation, GeoLocation> drawLine, OSMProgressListener progress) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, Predicate<GeoLocation> vertexFilter, BiConsumer<GeoLocation, GeoLocation> drawLine) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, Predicate<GeoLocation> vertexFilter, BiConsumer<GeoLocation, GeoLocation> drawLine) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, Predicate<GeoLocation> vertexFilter, BiConsumer<GeoLocation, GeoLocation> drawLine) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, Predicate<GeoLocation> vertexFilter, BiConsumer<GeoLocation, GeoLocation> drawLine, OSMProgressListener progress) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, Predicate<GeoLocation> vertexFilter, BiConsumer<GeoLocation, GeoLocation> drawLine, OSMProgressListener progress) NoSpeedOSMBuilder(BiPredicate<Speed, Map<String, String>> edgeFilter, Predicate<GeoLocation> vertexFilter, BiConsumer<GeoLocation, GeoLocation> drawLine, OSMProgressListener progress) SimpleOSMBuilder(Speed maxSpeed, BiPredicate<Speed, Map<String, String>> edgeFilter, Predicate<GeoLocation> vertexFilter) SimpleOSMBuilder(Speed maxSpeed, BiPredicate<Speed, Map<String, String>> edgeFilter, Predicate<GeoLocation> vertexFilter, OSMProgressListener progress) -
Uses of GeoLocation in rgu.transport.impl
Classes in rgu.transport.impl that implement interfaces with type arguments of type GeoLocationModifier and TypeClassDescriptionfinal classExhaustiveGeoLocationNearestFinderImpl<D extends Comparable<? super D>>Exhaustive search on a set of geo locations.Methods in rgu.transport.impl that return GeoLocationModifier and TypeMethodDescriptionExhaustiveGeoLocationNearestFinderImpl.nearest(GeoLocation target) Returns the element which is nearest to the specified target.Methods in rgu.transport.impl with parameters of type GeoLocationModifier and TypeMethodDescriptionExhaustiveGeoLocationNearestFinderImpl.nearest(GeoLocation target) Returns the element which is nearest to the specified target.Constructor parameters in rgu.transport.impl with type arguments of type GeoLocationModifierConstructorDescriptionExhaustiveGeoLocationNearestFinderImpl(Metric<GeoLocation, D> metric, Collection<GeoLocation> elements, Predicate<D> filter) Creates a new instance of ExhaustiveGeoLocationNearestFinderImpl.ExhaustiveGeoLocationNearestFinderImpl(Metric<GeoLocation, D> metric, Collection<GeoLocation> elements, Predicate<D> filter) Creates a new instance of ExhaustiveGeoLocationNearestFinderImpl. -
Uses of GeoLocation in rgu.transport.util
Methods in rgu.transport.util that return types with arguments of type GeoLocationModifier and TypeMethodDescriptionstatic Set<GeoLocation> GeoLocations.allLocations(Collection<TransitNetwork> networks) PercentSpeedCap.apply()Applies the speed cap to the given graph, returning a new speed-capped graph.PercentSpeedCap.apply(boolean verbose) Applies the speed cap to the given graph, returning a new speed-capped graph.static Map<GeoLocation, GeoLocation> GeoLocations.findWithTwoDTree(TwoDTree<GeoLocation> tree, Collection<GeoLocation> targets, ProgressListener progress, boolean subStageOnly) static Map<GeoLocation, GeoLocation> GeoLocations.findWithTwoDTree(TwoDTree<GeoLocation> tree, Collection<GeoLocation> targets, ProgressListener progress, boolean subStageOnly) static Graph<GeoLocation, RoadEdge> Reads a road graph from the specified file.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges and spatial filter.Method parameters in rgu.transport.util with type arguments of type GeoLocationModifier and TypeMethodDescriptionvoidPercentSpeedCap.add(String name, Predicate<GeoLocation> predicate, Speed maximum) Adds a predicate with a speed cap.static Map<GeoLocation, GeoLocation> GeoLocations.findWithTwoDTree(TwoDTree<GeoLocation> tree, Collection<GeoLocation> targets, ProgressListener progress, boolean subStageOnly) static Map<GeoLocation, GeoLocation> GeoLocations.findWithTwoDTree(TwoDTree<GeoLocation> tree, Collection<GeoLocation> targets, ProgressListener progress, boolean subStageOnly) static TransitNetworkDataIO.readNetwork(File file, BiConsumer<GeoLocation, GeoLocation> edgeConsumer, BiConsumer<GeoLocation, GeoLocation> edgeConsumerArtificial) Reads a transit network from the specified file, with optional consumers for edges.static TransitNetworkDataIO.readNetwork(File file, BiConsumer<GeoLocation, GeoLocation> edgeConsumer, BiConsumer<GeoLocation, GeoLocation> edgeConsumerArtificial) Reads a transit network from the specified file, with optional consumers for edges.static TransitNetworkDataIO.readNetwork(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer, BiConsumer<GeoLocation, GeoLocation> edgeConsumerArtificial) Reads a transit network from the specified file, with optional consumers for edges and spatial filter.static TransitNetworkDataIO.readNetwork(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer, BiConsumer<GeoLocation, GeoLocation> edgeConsumerArtificial) Reads a transit network from the specified file, with optional consumers for edges and spatial filter.static TransitNetworkDataIO.readNetwork(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer, BiConsumer<GeoLocation, GeoLocation> edgeConsumerArtificial) Reads a transit network from the specified file, with optional consumers for edges and spatial filter.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges and spatial filter.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges and spatial filter.static Graph<GeoLocation, RoadEdge> DataIO.readRoads(File file, Predicate<GeoLocation> spatialFilter, BiConsumer<GeoLocation, GeoLocation> edgeConsumer) Reads a road graph from the specified file, with an optional consumer for edges and spatial filter.static voidDataIO.writeRoads(File file, Graph<GeoLocation, RoadEdge> graph) Writes the given roads graph to the specified file.Constructor parameters in rgu.transport.util with type arguments of type GeoLocationModifierConstructorDescriptionPercentSpeedCap(Graph<GeoLocation, RoadEdge> graph) Creates an instance of percent speed cap.
TransitNetwork.nearestStretchedEuclidean(double)orTransitNetwork.nearestStretchedEuclidean(double)