Uses of Class
rgu.transport.geospatial.Distance
Packages that use Distance
Package
Description
Contains algorithms for search such as Dijkstra graph search.
Geospatial data.
Multimodal geospatial data such as public transport networks.
Implementation of OpenStreetMap (OSM) data loading.
-
Uses of Distance in rgu.transport.algorithms.search
Methods in rgu.transport.algorithms.search that return types with arguments of type DistanceModifier and TypeMethodDescriptionDijkstra.ofDistance()Returns an instance of Dijkstra which works on distance edges. -
Uses of Distance in rgu.transport.geospatial
Classes in rgu.transport.geospatial that implement interfaces with type arguments of type DistanceFields in rgu.transport.geospatial declared as DistanceFields in rgu.transport.geospatial with type parameters of type DistanceModifier 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 DistanceModifier and TypeMethodDescriptionstatic DistanceDistance.ofKilometers(double kilometers) Returns an distance specified by kilometers.static DistanceDistance.ofMeters(double meters) Returns an distance specified by meters.static DistanceDistance.ofMiles(double miles) Returns an distance specified by miles.Returns the sum of this distance and another distance.static DistanceDistance.read(ObjectInputStream in) Reads a distance from the specified input stream.Methods in rgu.transport.geospatial with parameters of type DistanceModifier and TypeMethodDescriptionintCompares this distance to another 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.Returns the sum of this distance and another distance.Returns the total time taken to travel a given distance as this constant velocity, using double precision rounded to the nearest nanosecond.Speed.timeRoundedToSeconds(Distance distance) Returns the total time taken to travel a given distance as this constant velocity, rounded to the nearest whole number of seconds.Speed.timeTruncatedToSeconds(Distance distance) Returns the total time taken to travel a given distance as this constant velocity, rounded down to a whole number of seconds. -
Uses of Distance in rgu.transport.geospatial.multimodal
Methods in rgu.transport.geospatial.multimodal with parameters of type DistanceModifier and TypeMethodDescriptionstatic 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.Constructors in rgu.transport.geospatial.multimodal with parameters of type DistanceModifierConstructorDescriptionNetworkJoiner(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 Distance in rgu.transport.geospatial.osm
Methods in rgu.transport.geospatial.osm that return DistanceConstructors in rgu.transport.geospatial.osm with parameters of type Distance