return Response.serverError().entity( "params cannot be blank" ).build();
tx = database.graph.beginTx();
DirectionsList directionsList =null;
try
{
WeightedPath path = threeLayeredTraverserShortestPath.findShortestPath( lat1, lon1, lat2, lon2, time );
if ( path != null )
{
DirectionsGenerator directionsGenerator = new DirectionsGenerator( path );
if ( path.length() == 3 )
directionsList = directionsGenerator.convertOneBusPath( path, time );
else
directionsList = directionsGenerator.convertTwoBusPath( path, time );
}
tx.success();