org.onebusaway.transit_data_federation.services.beans
Interface ShapeBeanService


public interface ShapeBeanService

Retrieve points as EncodedPolylineBean polyline representations.

Author:
bdferris
See Also:
ShapePoint, EncodedPolylineBean

Method Summary
 List<EncodedPolylineBean> getMergedPolylinesForShapeIds(Collection<org.onebusaway.gtfs.model.AgencyAndId> shapeIds)
          While a particular route or set of trips may have a number of distinct shape ids, there is often overlap among the shapes.
 EncodedPolylineBean getPolylineForShapeId(org.onebusaway.gtfs.model.AgencyAndId shapeId)
           
 ListBean<String> getShapeIdsForAgencyId(String agencyId)
          Return the list of all shape ids associated with the specified agency.
 

Method Detail

getPolylineForShapeId

EncodedPolylineBean getPolylineForShapeId(org.onebusaway.gtfs.model.AgencyAndId shapeId)
Parameters:
shapeId - see ShapePoint.getShapeId()
Returns:
the shape points with the specified shapeId as an encoded polyline

getMergedPolylinesForShapeIds

List<EncodedPolylineBean> getMergedPolylinesForShapeIds(Collection<org.onebusaway.gtfs.model.AgencyAndId> shapeIds)
While a particular route or set of trips may have a number of distinct shape ids, there is often overlap among the shapes. Here we compute the minimal set of polylines that would be needed to display the shapes without overlapping segments.

Parameters:
shapeIds - see ShapePoint.getShapeId()
Returns:
the merged minimum spanning tree representation of all the polylines from the specified set of shape id

getShapeIdsForAgencyId

ListBean<String> getShapeIdsForAgencyId(String agencyId)
Return the list of all shape ids associated with the specified agency.

Parameters:
agencyId -
Returns:
the list of all shape ids


Copyright © 2012 OneBusAway. All Rights Reserved.