private void computeAccessTimes(){
  StreetRouter streetRouter=new StreetRouter(network.streetLayer);
  EnumSet<LegMode> modes=request.accessModes;
  if (modes.contains(LegMode.CAR))   streetRouter.streetMode=StreetMode.CAR;
 else   if (modes.contains(LegMode.BICYCLE))   streetRouter.streetMode=StreetMode.BICYCLE;
 else   streetRouter.streetMode=StreetMode.WALK;
  streetRouter.profileRequest=request;
  streetRouter.distanceLimitMeters=TransitLayer.DISTANCE_TABLE_SIZE_METERS;
  streetRouter.setOrigin(request.fromLat,request.fromLon);
  streetRouter.route();
  accessTimes=streetRouter.getReachedStops();
}

private void computeAccessTimes ( ) { StreetRouter streetRouter = new StreetRouter ( network . streetLayer ) ; EnumSet < LegMode > modes = request . accessModes ; if ( modes . contains ( LegMode . CAR ) ) streetRouter . streetMode = StreetMode . CAR ; else if ( modes . contains ( LegMode . BICYCLE ) ) streetRouter . streetMode = StreetMode . BICYCLE ; else streetRouter . streetMode = StreetMode . WALK ; streetRouter . profileRequest = request ; streetRouter . distanceLimitMeters = TransitLayer . DISTANCE_TABLE_SIZE_METERS ; streetRouter . setOrigin ( request . fromLat , request . fromLon ) ; streetRouter . route ( ) ; accessTimes = streetRouter . getReachedStops ( ) ; }
compute access times based on the profile request
