org.onebusaway.transit_data_federation.services.blocks
Interface BlockGeospatialService


public interface BlockGeospatialService


Method Summary
 List<BlockInstance> getActiveScheduledBlocksPassingThroughBounds(CoordinateBounds bounds, long timeFrom, long timeTo)
          Determines the set of currently active blocks (according to scheduled times) that pass through the specified bounds.
 ScheduledBlockLocation getBestScheduledBlockLocationForLocation(BlockInstance blockInstance, CoordinatePoint location, long timestamp, double blockDistanceFrom, double blockDistanceTo)
           
 Set<BlockSequenceIndex> getBlockSequenceIndexPassingThroughBounds(CoordinateBounds bounds)
           
 

Method Detail

getActiveScheduledBlocksPassingThroughBounds

List<BlockInstance> getActiveScheduledBlocksPassingThroughBounds(CoordinateBounds bounds,
                                                                 long timeFrom,
                                                                 long timeTo)
Determines the set of currently active blocks (according to scheduled times) that pass through the specified bounds. We currently implement this by looking for stops in the region, so you might miss a block if it passes through but does not stop in a particular bounds.

Parameters:
bounds - the region
timeFrom -
timeTo -
Returns:
the list of SCHEDULED block instances in the given region along with their scheduled locations

getBlockSequenceIndexPassingThroughBounds

Set<BlockSequenceIndex> getBlockSequenceIndexPassingThroughBounds(CoordinateBounds bounds)

getBestScheduledBlockLocationForLocation

ScheduledBlockLocation getBestScheduledBlockLocationForLocation(BlockInstance blockInstance,
                                                                CoordinatePoint location,
                                                                long timestamp,
                                                                double blockDistanceFrom,
                                                                double blockDistanceTo)


Copyright © 2012 OneBusAway. All Rights Reserved.