Class NetworkJoiner

java.lang.Object
rgu.transport.geospatial.multimodal.NetworkJoiner

public final class NetworkJoiner extends Object
Used to join multiple transit networks to one another, using roads to inform connection times. Connection times will be calculated by walking on the road network, unless there is no road network within a radius around a stop, in which case, the connection times default to as the crow flies.
Author:
Lee A. Christie
  • Constructor Details

    • NetworkJoiner

      public 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.
      Parameters:
      roadGraph - the road graph, null if there is no road graph
      tree - the 2D tree used as a nearest finder for the road network, null if there is no road graph or if the neighbour finder should be generated by the Joiner
      networks - the collection of one or more transit networks, not null
      speed - the walking speed, not null
      maxTime - the maximum time to walk between stops on the transit networks, not null
      maxDistanceToNearbyRoad - if the nearest road is further away than this, the routing uses as the crow flies distance instead of walking on the road network, null if there is no limit and road routing should always be used
  • Method Details