Methods
- 
			
<inner> getShape( db, id, callback )
 - 
	
Description
Get all of the Shape's Points for the specified Shape ID
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
idstring Shape ID
callbackfunction Callback function
Name Type Description errorError Database Query Error
shapesArray.<Shape> The Shape's Points for the specified Shape ID
Details
 - 
			
<inner> getShapes( db, callback )
 - 
	
Description
Get all of the Points grouped by Shape from the database
Parameters
Name Type Description dbRightTrackDB The Right Track DB to query
callbackfunction Callback function
Name Type Description errorError Database Query Error
shapesArray.<Array.<Shape>> A 2D-Array of Shape Points
Details
 - 
			
<inner> getShapeRoutes( db [, id ], callback )
 - 
	
Description
Get the details of the Route(s) that correspond to the specified Shape (or all of the Shapes)
Parameters
Name Type Attributes Description dbRightTrackDB The Right Track DB to query
idstring <optional> Shape ID
callbackfunction Callback function
Name Type Description errorError Database Query Error
routesObject | Array.<Route> Routes associated with each Shape
Details
 - 
			
<inner> getShapeCenter( db [, id ], callback )
 - 
	
Description
Get the coordinates of the center of the specified Shape (or all of the Shapes)
Parameters
Name Type Attributes Description dbRightTrackDB The Right Track DB to query
idstring <optional> The Shape ID
callbackfunction Callback function
Name Type Description errorError Database Query Error
centerObject The coordinates of the Shape's center
Name Type Description latnumber The latitiude of the Shape's center
lonnumber The longitude of the Shape's center
Details